示例#1
0
 public static void ToString(Zetbox.App.Base.EnumDefaultValue obj, MethodReturnEventArgs <System.String> e)
 {
     if (obj.Property != null)
     {
         e.Result = string.Format("{0} will be initialized with '{1}.{2}'",
                                  obj.Property.Name,
                                  obj.EnumValue != null && obj.EnumValue.Enumeration != null ? obj.EnumValue.Enumeration.Name : "<unknown>",
                                  obj.EnumValue != null ? obj.EnumValue.Name : "<unknown>");
     }
     else
     {
         e.Result = "Initializes a property with a configured enum value";
     }
 }
示例#2
0
 public static void GetDefaultValue(Zetbox.App.Base.EnumDefaultValue obj, MethodReturnEventArgs <object> e)
 {
     e.Result = obj.EnumValue.Value;
 }