Beispiel #1
0
        /// <summary>
        ///     Initializes a new instance of the <see cref="T:System.Object" /> class.
        /// </summary>
        public PropertyInfo(string name, TypeUsageInfo type, PropertyInvokerInfo getter, PropertyInvokerInfo setter = null)
        {
            Contract.Requires(type != null);
            Contract.Requires(getter != null || setter != null);

            Name   = name;
            Type   = type;
            Getter = getter;
            Setter = setter;
        }
Beispiel #2
0
        /// <summary>
        ///     Initializes a new instance of the <see cref="T:System.Object" /> class.
        /// </summary>
        public PropertyInfo(string name, TypeUsageInfo type, PropertyInvokerInfo getter, PropertyInvokerInfo setter = null)
        {
            Contract.Requires(type != null);
            Contract.Requires(getter != null || setter != null);

            Name = name;
            Type = type;
            Getter = getter;
            Setter = setter;
        }
Beispiel #3
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;
 }
Beispiel #4
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;
 }