重新修改枚举扩展的命名空间为NewLife.Linq,避免在.Net 4.0中出现冲突
nnhy 编写于 2011-11-15 20:48:42
X
using System;
using System.Runtime;
using NewLife.Reflection;
namespace NewLife.Linq
{
    internal class IdentityFunction<TElement>
    {
        public static Func<TElement, TElement> Instance
        {
            get
            {
                return (TElement x) => x;
            }
        }
        [TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
        public IdentityFunction()
        {
        }
    }
}