示例#1
0
 protected internal StorePropertyDefinition(PropertyTypeSpecifier propertyTypeSpecifier, string displayName, Type type, PropertyFlags childFlags, PropertyDefinitionConstraint[] constraints) : base(displayName, type)
 {
     if (constraints == null)
     {
         throw new ArgumentNullException("constraints");
     }
     this.propertyTypeSpecifier = propertyTypeSpecifier;
     this.childFlags            = childFlags;
     if (constraints.Length != 0)
     {
         this.constraints = new ReadOnlyCollection <PropertyDefinitionConstraint>(constraints);
         return;
     }
     this.constraints = StorePropertyDefinition.EmptyConstraints;
 }
 protected NamedPropertyDefinition(PropertyTypeSpecifier propertyTypeSpecifier, string displayName, Type type, PropType mapiPropertyType, PropertyFlags childFlags, PropertyDefinitionConstraint[] constraints) : base(propertyTypeSpecifier, displayName, type, mapiPropertyType, childFlags, constraints)
 {
 }
 internal NativeStorePropertyDefinition(PropertyTypeSpecifier propertyTypeSpecifier, string displayName, Type type, PropType mapiPropertyType, PropertyFlags childFlags, PropertyDefinitionConstraint[] constraints) : base(propertyTypeSpecifier, displayName, type, childFlags, constraints)
 {
     this.mapiPropertyType = mapiPropertyType;
 }
 protected SimpleVirtualPropertyDefinition(PropertyTypeSpecifier specifiedWith, string displayName, Type propertyValueType, PropertyFlags flags, params PropertyDefinitionConstraint[] constraints) : base(specifiedWith, displayName, propertyValueType, flags, constraints)
 {
     EnumValidator.AssertValid <PropertyFlags>(flags);
     this.hashCode = new LazilyInitialized <int>(new Func <int>(this.ComputeHashCode));
 }