コード例 #1
0
        public object ReadObject(MikroTikResponseFrameDictionary values)
        {
            object[] propValues = new object[_properties.Length];
            for (int i = 0; i < _properties.Length; i++)
            {
                string propName = _properties[i].Name;
                string value    = values[propName];

                Type propType = _properties[i].PropertyType;
                propValues[i] = MikroTikTypeConverter.ConvertValue(value, propType);
            }
            return(_activator(propValues));
            //return Activator.CreateInstance(_type, propValues);
        }
コード例 #2
0
 public TypeProxy(MikroTikResponseFrameDictionary self)
 {
     _self = self;
 }