Esempio n. 1
0
        public static Properties RndProperies(int min = 2, int max = 10)
        {
            int count      = Rnd.Next(min, max);
            var properties = new Properties(count);

            for (int i = 0; i < count; i++)
            {
                string       code         = RndString();
                string       description  = RndString(50, 100).RndNull();
                ProperyType  prType       = RndPropertyType;
                bool         isSetter     = RndBool;
                PropertyInfo propertyInfo = new PropertyInfo(description, isSetter, prType);
                properties.Add(code, propertyInfo);
            }
            return(properties);
        }
 public PropertyInfo(string description, bool isSetter, ProperyType type)
 {
     Description = description;
     IsSetter    = isSetter;
     Type        = type;
 }