📄 endswithhbmxmlfilter.cs
字号:
using System;
namespace NHibernate.Cfg.MappingSchema
{
/// <summary>
/// Responsible for checking that a resource name matches the default pattern of "*.hbm.xml". This is the
/// default filter for <see cref="MappingDocumentAggregator" />.
/// </summary>
public class EndsWithHbmXmlFilter : IAssemblyResourceFilter
{
public bool ShouldParse(string resourceName)
{
if (resourceName == null)
throw new ArgumentNullException("resourceName");
// TODO: ignore case?
return resourceName.EndsWith(".hbm.xml");
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -