Пример #1
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="T:System.Object" /> class.
 /// </summary>
 public PropertyInfo(string name, FieldInfo backingField, bool isReadOnly = false)
     : this(name, backingField, new PropertyInvokerInfo(), isReadOnly ? null : new PropertyInvokerInfo())
 {
     Accessibility = AccessibilityLevels.Public;
 }
Пример #2
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="T:System.Object" /> class.
 /// </summary>
 public PropertyInfo(string name, FieldInfo backingField, PropertyInvokerInfo getter, PropertyInvokerInfo setter = null)
     : this(name, backingField.Type, getter, setter)
 {
     BackingField = backingField;
 }