예제 #1
0
        public TyonObject(object obj, TyonDehydrater dehydrater) : this()
        {
            dehydrater.RegisterInternalObject(obj, this);

            SetTyonType(TyonType.CreateTyonType(obj.GetType()));
            SetTyonVariables(
                dehydrater.GetDesignatedVariables(obj.GetType())
                .Convert(v => new TyonVariable(v.CreateStrongInstance(obj), dehydrater))
                );
        }
예제 #2
0
 public TyonValue_Type(Type type, TyonDehydrater dehydrater)
 {
     SetTyonType(TyonType.CreateTyonType(type));
 }
예제 #3
0
 public TyonSurrogate(object value, TyonDehydrater dehydrater) : this()
 {
     SetTyonType(TyonType.CreateTyonType(value.GetTypeEX()));
     SetTyonValue(new TyonValue_String(value, dehydrater));
 }
예제 #4
0
 public TyonType_Array(Type type) : this()
 {
     SetTyonType(TyonType.CreateTyonType(type.GetElementType()));
 }
예제 #5
0
 public TyonArray(Type element_type, object value, TyonDehydrater dehydrater) : this()
 {
     SetTyonType(TyonType.CreateTyonType(element_type));
     SetTyonValueList(new TyonValueList(element_type, value.ToEnumerable <object>(), dehydrater));
 }
예제 #6
0
 public TyonType_Direct_Templated(Type type) : this()
 {
     SetId(type.GetNamespace().AppendToVisible(".") + type.GetBasicName());
     SetTyonTypes(type.GetGenericArguments().Convert(t => TyonType.CreateTyonType(t)));
 }