public FindProperty ( String name ) : |
||
name | String | |
Результат |
public System.Reflection.PropertyInfo FindProperty(string name) { var propertyInfo = _classMap.FindProperty(name); if (propertyInfo == null) { return(new DynamicPropertyInfo(_type, name)); } else { return(propertyInfo); } }
public virtual PropertyEntry GetProperty(Type c, string name) { if (c == null) { throw new System.ArgumentException("class object is null!"); } IIntrospectorCache ic = IntrospectorCache; ClassMap classMap = ic.Get(c); if (classMap == null) { classMap = ic.Put(c); } return(classMap.FindProperty(name)); }
public virtual PropertyInfo GetProperty(Type c, string name) { if (c == null) { throw new System.Exception("Introspector.getMethod(): Class method key was null: " + name); } ClassMap classMap = null; lock (this.classMethodMaps) { classMap = (ClassMap)this.classMethodMaps[c]; if (classMap == null) { if (this.cachedClassNames.Contains(c.FullName)) { this.ClearCache(); } classMap = this.CreateClassMap(c); } } return(classMap.FindProperty(name)); }