private MethodDefinitionExpression CreateInitMethod() { var self = FickleExpression.Variable(currentType, "self"); var method = new MethodDefinitionScope <MethodDefinitionExpression>("init", "id", null) .Return(c => c.Call(self, self.Type, "initWithOptions", FickleExpression.New("NSDictionary"))) .EndMethod(); return(method); }
private MethodDefinitionExpression CreateInitMethod() { var self = FickleExpression.Variable(currentType, "self"); var method = new MethodDefinitionScope<MethodDefinitionExpression>("init", "id", null) .Return(c => c.Call(self, self.Type, "initWithOptions", FickleExpression.New("NSDictionary"))) .EndMethod(); return method; }