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