Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
/// <summary> /// Get a property within a type /// </summary> public FieldInfo GetField(Type type, string name) { if (type == null) { throw new ArgumentNullException("type", "Parameter cannot be null"); } if (name == null) { throw new ArgumentNullException("name", "Parameter cannot be null"); } if (!_typefinder.ContainsKey(type)) { _typefinder.Add(type, new Cache(type)); } return(_typefinder[type].Fields[name]); }