DecorateElementType() static private method

static private DecorateElementType ( System.Property obj, MethodReturnEventArgs e, bool isStruct ) : void
obj System.Property
e MethodReturnEventArgs
isStruct bool
return void
Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo 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);
        }
Ejemplo n.º 4
0
 public static void GetElementTypeString(DateTimeProperty obj, MethodReturnEventArgs <string> e)
 {
     e.Result = "DateTime";
     PropertyActions.DecorateElementType(obj, e, true);
 }
Ejemplo n.º 5
0
 public static void GetElementTypeString(StringProperty obj, MethodReturnEventArgs <string> e)
 {
     e.Result = "string";
     PropertyActions.DecorateElementType(obj, e, false);
 }