Esempio n. 1
0
        public static void GetPropertyType(ObjectReferencePlaceholderProperty obj, MethodReturnEventArgs <Type> e)
        {
            var def = obj.ReferencedObjectClass;

            e.Result = Type.GetType(def.Module.Namespace + "." + def.Name + ", " + Zetbox.API.Helper.InterfaceAssembly, true);
            PropertyActions.DecorateParameterType(obj, e, false, obj.IsList, obj.HasPersistentOrder);
        }
 public static void GetElementTypeString(ObjectReferencePlaceholderProperty obj, MethodReturnEventArgs<string> e)
 {
     var def = obj.ReferencedObjectClass;
     if (def == null)
     {
         e.Result = "<no class>";
     }
     else if (def.Module == null)
     {
         e.Result = "<no namespace>." + def.Name;
     }
     else
     {
         e.Result = def.Module.Namespace + "." + def.Name;
     }
     PropertyActions.DecorateElementType(obj, e, false);
 }
Esempio n. 3
0
        public static void GetElementTypeString(ObjectReferencePlaceholderProperty obj, MethodReturnEventArgs <string> e)
        {
            var def = obj.ReferencedObjectClass;

            if (def == null)
            {
                e.Result = "<no class>";
            }
            else if (def.Module == null)
            {
                e.Result = "<no namespace>." + def.Name;
            }
            else
            {
                e.Result = def.Module.Namespace + "." + def.Name;
            }
            PropertyActions.DecorateElementType(obj, e, false);
        }
Esempio n. 4
0
 public static void GetPropertyTypeString(ObjectReferencePlaceholderProperty obj, MethodReturnEventArgs <string> e)
 {
     GetElementTypeString(obj, e);
     PropertyActions.DecorateParameterType(obj, e, false, obj.IsList, obj.HasPersistentOrder);
 }
 public static void GetPropertyTypeString(ObjectReferencePlaceholderProperty obj, MethodReturnEventArgs<string> e)
 {
     GetElementTypeString(obj, e);
     PropertyActions.DecorateParameterType(obj, e, false, obj.IsList, obj.HasPersistentOrder);
 }
 public static void GetPropertyType(ObjectReferencePlaceholderProperty obj, MethodReturnEventArgs<Type> e)
 {
     var def = obj.ReferencedObjectClass;
     e.Result = Type.GetType(def.Module.Namespace + "." + def.Name + ", " + Zetbox.API.Helper.InterfaceAssembly, true);
     PropertyActions.DecorateParameterType(obj, e, false, obj.IsList, obj.HasPersistentOrder);
 }