Friday, May 1, 2015

asp.net check is Child Class

  private static bool isChildClass(System.Reflection.PropertyInfo propertyInfo)
        {
            return (propertyInfo.PropertyType.IsClass && !propertyInfo.PropertyType.IsValueType &&
                                !propertyInfo.PropertyType.IsPrimitive && propertyInfo.PropertyType.FullName != "System.String");
        }

No comments:

Post a Comment