static private DecorateElementType ( System.Property obj, MethodReturnEventArgs |
||
obj | System.Property | |
e | MethodReturnEventArgs |
|
isStruct | bool | |
return | void |
public static void GetElementTypeString(EnumerationProperty obj, MethodReturnEventArgs <string> e) { var cls = obj.Enumeration; if (cls == null) { e.Result = "<no enum>"; } else if (cls.Module == null) { e.Result = "<no namespace>." + cls.Name; } else { e.Result = cls.Module.Namespace + "." + cls.Name; } PropertyActions.DecorateElementType(obj, e, true); }
public static void GetElementTypeString(CompoundObjectProperty obj, MethodReturnEventArgs <string> e) { var def = obj.CompoundObjectDefinition; 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; } PropertyActions.DecorateElementType(obj, e, false); }
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); }
public static void GetElementTypeString(DateTimeProperty obj, MethodReturnEventArgs <string> e) { e.Result = "DateTime"; PropertyActions.DecorateElementType(obj, e, true); }
public static void GetElementTypeString(StringProperty obj, MethodReturnEventArgs <string> e) { e.Result = "string"; PropertyActions.DecorateElementType(obj, e, false); }