73 references to CodeFlags
System.Web.Services (73)
System\Web\Services\Description\HttpProtocolImporter.cs (13)
158CodeMemberMethod mainCodeMethod = WebCodeGenerator.AddMethod(this.CodeTypeDeclaration, method.Name, new CodeFlags[parameterTypeNames.Length], parameterTypeNames, parameterNames, 160CodeFlags.IsPublic | (Style == ServiceDescriptionImportStyle.Client ? 0 : CodeFlags.IsAbstract)); 199CodeMemberMethod beginCodeMethod = WebCodeGenerator.AddMethod(this.CodeTypeDeclaration, "Begin" + method.Name, new CodeFlags[asyncParameterTypeNames.Length], 201typeof(IAsyncResult).FullName, metadata, CodeFlags.IsPublic); 213CodeMemberMethod endCodeMethod = WebCodeGenerator.AddMethod(this.CodeTypeDeclaration, "End" + method.Name, new CodeFlags[1], 216method.MimeReturn.TypeName, metadata, CodeFlags.IsPublic); 231string methodKey = MethodSignature(uniqueMethodName, method.MimeReturn.TypeName, new CodeFlags[parameterTypeNames.Length], parameterTypeNames); 350CodeFlags flags = 0; 352flags = CodeFlags.IsAbstract; 354flags = CodeFlags.IsInterface; 356new string[0], metadata, CodeFlags.IsPublic | flags, 361CodeConstructor ctor = WebCodeGenerator.AddConstructor(codeClass, new string[0], new string[0], null, CodeFlags.IsPublic);
System\Web\Services\Description\MimeTextImporter.cs (2)
58CodeTypeDeclaration codeClass = WebCodeGenerator.AddClass(ImportContext.CodeNamespace, typeName, string.Empty, new string[0], null, CodeFlags.IsPublic, 114CodeTypeMember member = WebCodeGenerator.AddMember(codeClass, fieldTypeName, name, null, metadata, CodeFlags.IsPublic, options);
System\Web\Services\Description\ProtocolImporter.cs (6)
436new CodeFlags[1], new string[] { typeof(object).FullName }, new string[] { "userState" }, 439CodeFlags.IsPublic | (cancelAsync != cancelMethodName ? 0 : CodeFlags.IsNew)); 620internal static string MethodSignature(string methodName, string returnType, CodeFlags[] parameterFlags, string[] parameterTypes) { 628if ((parameterFlags[i] & CodeFlags.IsByRef) != 0) 630else if ((parameterFlags[i] & CodeFlags.IsOut) != 0)
System\Web\Services\Description\SoapHttpTransportImporter.cs (1)
21CodeConstructor ctor = WebCodeGenerator.AddConstructor(ImportContext.CodeTypeDeclaration, new string[0], new string[0], null, CodeFlags.IsPublic);
System\Web\Services\Description\SoapProtocolImporter.cs (26)
52parameter.codeFlags = CodeFlags.IsByRef; 60parameter.codeFlags = CodeFlags.IsOut; 72parameter.codeFlags = CodeFlags.IsByRef; 85parameter.codeFlags = CodeFlags.IsOut; 172internal CodeFlags codeFlags; 178get { return (codeFlags & CodeFlags.IsOut) != 0; } 182get { return (codeFlags & CodeFlags.IsByRef) != 0; } 219internal static CodeFlags[] GetCodeFlags(IList parameters, int specifiedCount) { 220CodeFlags[] codeFlags = new CodeFlags[parameters.Count + specifiedCount]; 225internal static void GetCodeFlags(IList parameters, CodeFlags[] codeFlags, int start, int specifiedCount) { 433CodeFlags flags = 0; 435flags = CodeFlags.IsAbstract; 437flags = CodeFlags.IsInterface; 439new string[0], null, CodeFlags.IsPublic | flags, 594WebCodeGenerator.AddMember(CodeTypeDeclaration, mapping.TypeFullName, globalHeader.fieldName, null, null, CodeFlags.IsPublic, ServiceImporter.CodeGenerationOptions); 803CodeFlags[] parameterFlags = SoapParameter.GetCodeFlags(parameters.Parameters, parameters.CheckSpecifiedCount); 814CodeFlags.IsPublic | (Style == ServiceDescriptionImportStyle.Client ? 0 : CodeFlags.IsAbstract)); 855CodeFlags[] asyncParameterFlags = new CodeFlags[inCount + 2]; 863CodeFlags.IsPublic); 884CodeFlags[] asyncReturnFlags = new CodeFlags[outCount + 1]; 886asyncReturnFlags[i + 1] = CodeFlags.IsOut; 894CodeFlags.IsPublic);
System\Web\Services\Description\WebCodeGenerator.cs (25)
104internal static CodeTypeMember AddMember(CodeTypeDeclaration codeClass, string typeName, string memberName, CodeExpression initializer, CodeAttributeDeclarationCollection metadata, CodeFlags flags, CodeGenerationOptions options) { 121if ((flags & CodeFlags.IsPublic) != 0) 136internal static CodeConstructor AddConstructor(CodeTypeDeclaration codeClass, string[] parameterTypeNames, string[] parameterNames, CodeAttributeDeclarationCollection metadata, CodeFlags flags) { 139if ((flags & CodeFlags.IsPublic) != 0) 141if ((flags & CodeFlags.IsAbstract) != 0) 156CodeFlags[] parameterFlags, string[] parameterTypeNames, string[] parameterNames, 157string returnTypeName, CodeAttributeDeclarationCollection metadata, CodeFlags flags) { 165CodeFlags[] parameterFlags, string[] parameterTypeNames, string[] parameterNames, 166CodeAttributeDeclarationCollection[] parameterAttributes, string returnTypeName, CodeAttributeDeclarationCollection metadata, CodeFlags flags) { 173if ((flags & CodeFlags.IsPublic) != 0) 175if ((flags & CodeFlags.IsAbstract) != 0) 178if ((flags & CodeFlags.IsNew) != 0) 185if ((parameterFlags[i] & CodeFlags.IsByRef) != 0) 187else if ((parameterFlags[i] & CodeFlags.IsOut) != 0) 199internal static CodeTypeDeclaration AddClass(CodeNamespace codeNamespace, string className, string baseClassName, string[] implementedInterfaceNames, CodeAttributeDeclarationCollection metadata, CodeFlags flags, bool isPartial) { 205internal static CodeTypeDeclaration CreateClass(string className, string baseClassName, string[] implementedInterfaceNames, CodeAttributeDeclarationCollection metadata, CodeFlags flags, bool isPartial) { 212codeClass.IsStruct = (flags & CodeFlags.IsStruct) != 0; 213if ((flags & CodeFlags.IsPublic) != 0) 217if ((flags & CodeFlags.IsAbstract) != 0) 222if ((flags & CodeFlags.IsInterface) != 0) 288new CodeFlags[1] { 0 }, new string[] { typeof(object).FullName }, new string[] { "arg" }, 318new CodeFlags[parameterNames.Length], parameterTypeNames, parameterNames, typeof(void).FullName, null, CodeFlags.IsPublic); 330new CodeFlags[parameterNames.Length], parameterTypeNames, parameterNames, typeof(void).FullName, null, CodeFlags.IsPublic);