When working with .NET CodeDom:
CodeMemberField param = new CodeMemberField(); string paramType = "string"; param.Attributes = MemberAttributes.Asse