Exemplo n.º 1
0
        /// <summary>
        /// Method
        /// </summary>
        /// <returns></returns>
        public CatCompoundObject CreateObjectFromClass()
        {
            var newProperties = new CatProperty[Properties.Length];

            for (int i = 0; i < Properties.Length; i++)
            {
                newProperties[i] = (CatProperty)Properties[i].Clone();
            }
            var cco = new CatCompoundObject(this, newProperties);

            cco.SetParentClass(Parent);
            return(cco);
        }
Exemplo n.º 2
0
 public void InjectProperty(CatProperty property)
 {
     Properties = Properties.Append(property).ToArray();
 }