⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 endswithhbmxmlfilter.cs

📁 NHibernate NET开发者所需的
💻 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 + -