public ObjectAfterConstruction AddAfterConstruction(string code) { var after = new ObjectAfterConstruction(Session); after.Code = code; Methods.Add(after); return(after); }
public static ObjectAfterConstruction AddAfterConstruction(this BusinessObject self, string code) { var after = new ObjectAfterConstruction(self.Session); after.SetCode(code); self.Methods.Add(after); return(after); }