Ejemplo n.º 1
0
 public static Type Get_Type(IModelMemberModelMemberAdditionalMember modelMember)
 {
     if (modelMember.DeclaredType != null && !string.IsNullOrEmpty(modelMember.ModelNodePath))
     {
         var propertyInfo = modelMember.DeclaredType.Property(modelMember.ModelNodePath.Split('.').Last());
         if (propertyInfo != null)
         {
             return(propertyInfo.PropertyType);
         }
     }
     return(null);
 }
Ejemplo n.º 2
0
 public static string Get_ModelNodePath(IModelMemberModelMemberAdditionalMember modelMember)
 {
     return(modelMember.Name);
 }