Ejemplo n.º 1
0
        //---
        #region public object Property_get(string name_in, ClaSSPropertyAttribute.eType type_in);
        public object Property_get(string name_in, ClaSSPropertyAttribute.eType type_in)
        {
            PropertyInfo _property = Property_find(name_in, type_in);

            if (_property == null)
            {
                return(null);
            }
            else
            {
                return(_property.GetValue(this, null));
            }
        }
Ejemplo n.º 2
0
        public int PropertyIndex_find(string name_in, ClaSSPropertyAttribute.eType type_in)
        {
            for (int a = 0; a < Attributes.Length; a++)
            {
                if (
                    (Attributes[a].Name == name_in)
                    &&
                    (Attributes[a].Type == type_in)
                    )
                {
                    return(a);
                }
            }

            return(-1);
        }
Ejemplo n.º 3
0
 public PropertyInfo Property_find(string name_in, ClaSSPropertyAttribute.eType type_in)
 {
     return(classstateapi_.Property_find(name_in, type_in));
 }
Ejemplo n.º 4
0
        public PropertyInfo Property_find(string name_in, ClaSSPropertyAttribute.eType type_in)
        {
            int _index = PropertyIndex_find(name_in, type_in);

            return((_index != -1) ? Properties[_index] : null);
        }