public FieldGenerator DefineField(string name, Type type, FieldAttributes attrs) { FieldGenerator fieldGen = new FieldGenerator(this, attrs, new VariableDeclarationExpression(name, TypeSyntax.Create(type), null)); Members.Add(fieldGen); return(fieldGen); }