示例#1
0
        private ExtendedPropertiesMap CreateExtendedPropertiesMap(Type classType)
        {
            var extPropMember = _profile.FindExtendedPropertiesMember(classType);

            if (extPropMember == null)
            {
                return(null);
            }

            return(new ExtendedPropertiesMap(
                       extPropMember.Name,
                       extPropMember.GetReturnType(),
                       MemberReflectionOptimizer.GetGetter(extPropMember),
                       MemberReflectionOptimizer.GetSetter(extPropMember)));
        }
 /// <summary>
 ///   Finds the extended properties member.
 /// </summary>
 /// <param name = "classType">Type of the class.</param>
 /// <returns></returns>
 public MemberInfo FindExtendedPropertiesMember(Type classType)
 {
     return(_profile.FindExtendedPropertiesMember(classType));
 }