public static void GetParameterType(EnumParameter obj, MethodReturnEventArgs <Type> e) { var cls = obj.Enumeration; e.Result = Type.GetType(cls.Module.Namespace + "." + cls.Name + ", " + Zetbox.API.Helper.InterfaceAssembly, true); BaseParameterActions.DecorateParameterType(obj, e, true); }
public static void GetParameterType(Zetbox.App.Base.CompoundObjectParameter obj, Zetbox.API.MethodReturnEventArgs <System.Type> e) { var cls = obj.CompoundObject; e.Result = Type.GetType(cls.Module.Namespace + "." + cls.Name + ", " + Zetbox.API.Helper.InterfaceAssembly, true); BaseParameterActions.DecorateParameterType(obj, e, false); }
public static void GetParameterType(ObjectReferenceParameter obj, MethodReturnEventArgs <Type> e) { var def = obj.ObjectClass; e.Result = Type.GetType(def.Module.Namespace + "." + def.Name + ", " + Zetbox.API.Helper.InterfaceAssembly, true); BaseParameterActions.DecorateParameterType(obj, e, false); }
public static void GetParameterTypeString(EnumParameter obj, MethodReturnEventArgs <System.String> e) { if (obj.Enumeration == null) { e.Result = "<no enum>"; } else if (obj.Enumeration.Module == null) { e.Result = "<no namespace>." + obj.Enumeration.Name; } else { e.Result = obj.Enumeration.Module.Namespace + "." + obj.Enumeration.Name; } BaseParameterActions.DecorateParameterType(obj, e, true); }
public static void GetParameterTypeString(CompoundObjectParameter obj, MethodReturnEventArgs <string> e) { var cls = obj.CompoundObject; if (cls == null) { e.Result = "<no type>"; } else if (cls.Module == null) { e.Result = "<no namespace>." + cls.Name; } else { e.Result = cls.Module.Namespace + "." + cls.Name; } BaseParameterActions.DecorateParameterType(obj, e, false); }
public static void GetParameterTypeString(ObjectReferenceParameter obj, MethodReturnEventArgs <string> e) { var def = obj.ObjectClass; if (def == null) { e.Result = "<no type>"; } else if (def.Module == null) { e.Result = "<no namespace>." + def.Name; } else { e.Result = def.Module.Namespace + "." + def.Name; } BaseParameterActions.DecorateParameterType(obj, e, false); }
public static void GetParameterTypeString(DoubleParameter obj, MethodReturnEventArgs <string> e) { e.Result = "double"; BaseParameterActions.DecorateParameterType(obj, e, true); }
public static void GetParameterType(DoubleParameter obj, MethodReturnEventArgs <Type> e) { e.Result = typeof(double); BaseParameterActions.DecorateParameterType(obj, e, true); }
public static void GetParameterTypeString(CLRObjectParameter obj, MethodReturnEventArgs <string> e) { e.Result = obj.Type != null ? obj.Type.FullName : "<no type set>"; BaseParameterActions.DecorateParameterType(obj, e, false); }
public static void GetParameterType(CLRObjectParameter obj, MethodReturnEventArgs <Type> e) { e.Result = obj.Type.AsType(true); BaseParameterActions.DecorateParameterType(obj, e, false); }
public static void GetParameterTypeString(StringParameter obj, MethodReturnEventArgs <string> e) { e.Result = "string"; BaseParameterActions.DecorateParameterType(obj, e, false); }
public static void GetParameterType(StringParameter obj, MethodReturnEventArgs <Type> e) { e.Result = typeof(string); BaseParameterActions.DecorateParameterType(obj, e, false); }