public static void ToString(Zetbox.App.Base.NewGuidDefaultValue obj, MethodReturnEventArgs <string> e) { if (obj.Property != null) { e.Result = string.Format("{0} will be initialized with a new Guid", obj.Property.Name); } else { e.Result = "Initializes a property with a new Guid"; } }
public static void GetDefaultValue(Zetbox.App.Base.NewGuidDefaultValue obj, MethodReturnEventArgs <System.Object> e) { e.Result = Guid.NewGuid(); }