Ejemplo n.º 1
0
 public void AddRange(StiPropertyInfoCollection propertyInfos)
 {
     foreach (StiPropertyInfo propertyInfo in propertyInfos)
     {
         Add(propertyInfo);
     }
 }
        /// <summary>
        /// Creates a new instance of the StiPropertyInfo class.
        /// </summary>
        /// <param name="name">Name of an object properties</param>
        /// <param name="value">Value of an object property.</param>
        /// <param name="defaultValue">Value of an object property by default.</param>
        /// <param name="isKey">Value indicates that this property describes an object.</param>
        /// <param name="isReference">Value indicates that this is a reference to an object.</param>
        /// <param name="isList">Value indicates that this is a collection.</param>
        public StiPropertyInfo(string name, object value, object defaultValue,
                               bool isKey, bool isReference, bool isList, string typeName)
        {
            Properties = new StiPropertyInfoCollection(this);

            this.name          = name;
            this.valueObj      = value;
            this.defaultValue  = defaultValue;
            this.isKey         = isKey;
            this.isReference   = isReference;
            this.isList        = isList;
            this.referenceCode = -1;
            this.typeName      = typeName;
        }