Home
last modified time | relevance | path

Searched refs:CodeTypeReference (Results 1 – 25 of 281) sorted by relevance

12345678910>>...12

/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System.Data.Entity.Design/System/Data/EntityModel/Emitters/
H A DTypeReference.cs73CodeTypeReference value = new CodeTypeReference(type, CodeTypeReferenceOptions.GlobalReference); in ComputeForType()
85 public CodeTypeReference ForType(Type generic, CodeTypeReference argument) in ForType()
89CodeTypeReference typeRef = new CodeTypeReference(generic, CodeTypeReferenceOptions.GlobalReferenc… in ForType()
121 CodeTypeReference value; in ComputeFromString()
179 … public CodeTypeReference AdoFrameworkGenericClass(string name, CodeTypeReference typeParameter) in AdoFrameworkGenericClass()
189 …public CodeTypeReference AdoFrameworkGenericDataClass(string name, CodeTypeReference typeParameter) in AdoFrameworkGenericDataClass()
206 …private CodeTypeReference ComputeFromStringGeneric(KeyValuePair<string, CodeTypeReference> argumen… in ComputeFromStringGeneric()
237 public CodeTypeReference ObjectResult(CodeTypeReference elementType) in ObjectResult()
265 public CodeTypeReference DateTime
297 public CodeTypeReference Guid
[all …]
/dports/lang/mono/mono-5.10.1.57/mcs/class/System/Test/Microsoft.CSharp/
H A DCodeGeneratorTypeOutputTest.cs37 Assert.AreEqual ("A[,,][,]", gen.GetTypeOutput (new CodeTypeReference ("A[,,][,]")), "#5"); in GetTypeOutputFailure()
44 Assert.AreEqual ("A", gen.GetTypeOutput (new CodeTypeReference ("A")), "#1"); in GetTypeOutput()
45 Assert.AreEqual ("A[]", gen.GetTypeOutput (new CodeTypeReference ("A[]")), "#2"); in GetTypeOutput()
54 Assert.AreEqual ("int", gen.GetTypeOutput (new CodeTypeReference (typeof(int))), "#1"); in Shortcuts()
55 Assert.AreEqual ("int", gen.GetTypeOutput (new CodeTypeReference ("systeM.inT32")), "#2"); in Shortcuts()
56 Assert.AreEqual ("long", gen.GetTypeOutput (new CodeTypeReference (typeof(long))), "#3"); in Shortcuts()
57 Assert.AreEqual ("long", gen.GetTypeOutput (new CodeTypeReference ("systeM.inT64")), "#4"); in Shortcuts()
58 Assert.AreEqual ("short", gen.GetTypeOutput (new CodeTypeReference (typeof(short))), "#5"); in Shortcuts()
60 Assert.AreEqual ("bool", gen.GetTypeOutput (new CodeTypeReference (typeof(bool))), "#7"); in Shortcuts()
62 Assert.AreEqual ("char", gen.GetTypeOutput (new CodeTypeReference (typeof(char))), "#9"); in Shortcuts()
[all …]
/dports/lang/mono/mono-5.10.1.57/mcs/class/System/Test/System.CodeDom/
H A DCodeTypeReferenceCollectionTest.cs54 CodeTypeReference ref1 = new CodeTypeReference (string.Empty); in Constructor1()
55 CodeTypeReference ref2 = new CodeTypeReference (string.Empty); in Constructor1()
70 CodeTypeReference[] refs = new CodeTypeReference[] { in Constructor1_NullItem()
88 CodeTypeReference ref1 = new CodeTypeReference (string.Empty); in Constructor2()
89 CodeTypeReference ref2 = new CodeTypeReference (string.Empty); in Constructor2()
112 CodeTypeReference ref1 = new CodeTypeReference (string.Empty); in Add()
113 CodeTypeReference ref2 = new CodeTypeReference (string.Empty); in Add()
136 CodeTypeReference ref1 = new CodeTypeReference (string.Empty); in Insert()
137 CodeTypeReference ref2 = new CodeTypeReference (string.Empty); in Insert()
160 CodeTypeReference ref1 = new CodeTypeReference (string.Empty); in AddRange()
[all …]
H A DCodeTypeReferenceTest.cs24 CodeTypeReference reference = new CodeTypeReference (string.Empty); in EmptyTypeName()
69 CodeTypeReference reference = new CodeTypeReference ("A[B]"); in BaseTypeTest1()
302 CodeTypeReference reference = new CodeTypeReference( in CodeTypeParameter1()
315 CodeTypeReference reference = new CodeTypeReference ( in CodeTypeParameter2()
336 CodeTypeReference reference = new CodeTypeReference ( in CodeTypeParameter3()
365 CodeTypeReference reference = new CodeTypeReference ( in CodeTypeParameter4()
386 CodeTypeReference reference = new CodeTypeReference ( in CodeTypeParameter5()
398 CodeTypeReference reference = new CodeTypeReference ( in GenericTypeTest1()
426 CodeTypeReference reference = new CodeTypeReference ( in GenericTypeTest2()
463 CodeTypeReference reference = new CodeTypeReference ( in GenericTypeTest3()
[all …]
H A DCodeTypeReferenceCas.cs54 CodeTypeReference ctr = new CodeTypeReference (); in Constructor0_Deny_Unrestricted()
56 ctr.ArrayElementType = new CodeTypeReference (); in Constructor0_Deny_Unrestricted()
69 CodeTypeReference ctr = new CodeTypeReference ("System.Int32"); in Constructor1_Deny_Unrestricted()
85 CodeTypeReference ctr = new CodeTypeReference (typeof (int)); in Constructor2_Deny_Unrestricted()
101 CodeTypeReference array = new CodeTypeReference ("System.Int32"); in Constructor3_Deny_Unrestricted()
102 CodeTypeReference ctr = new CodeTypeReference (array, 1); in Constructor3_Deny_Unrestricted()
118 CodeTypeReference ctr = new CodeTypeReference (parameter); in Constructor4_Deny_Unrestricted()
134CodeTypeReference ctr = new CodeTypeReference ("System.Int32", CodeTypeReferenceOptions.GlobalRefe… in Constructor5_Deny_Unrestricted()
150CodeTypeReference ctr = new CodeTypeReference (typeof (int), CodeTypeReferenceOptions.GlobalRefere… in Constructor6_Deny_Unrestricted()
166CodeTypeReference[] arguments = new CodeTypeReference[1] { new CodeTypeReference ("System.Int32") … in Constructor7_Deny_Unrestricted()
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.CodeDom/tests/CodeObjects/
H A DCodeTypeReferenceTests.cs16 var type = new CodeTypeReference(); in Ctor_Default()
44 var typeReference = new CodeTypeReference(type); in Ctor_Type()
114 var typeReference = new CodeTypeReference(type); in Ctor_String()
173 …Assert.Equal(typeArguments ?? new CodeTypeReference[0], typeReference.TypeArguments.Cast<CodeTypeR… in Ctor_String_ParamsCodeTypeReference()
179 CodeTypeReference[] typeArguments = new CodeTypeReference[] { null }; in Ctor_NullObjectInTypeArguments_ThrowsArgumentNullException()
204 var codeTypeReference = new CodeTypeReference(); in ArrayElementType_Set_Get_ReturnsExpected()
236 CodeTypeReference type1 = new CodeTypeReference(typeof(int)); in TypeArguments_AddMultiple_ReturnsExpected()
238 …Assert.Equal(new CodeTypeReference[] { type1 }, codeTypeReference.TypeArguments.Cast<CodeTypeRefer… in TypeArguments_AddMultiple_ReturnsExpected()
240 CodeTypeReference type2 = new CodeTypeReference(typeof(char)); in TypeArguments_AddMultiple_ReturnsExpected()
242 …Assert.Equal(new CodeTypeReference[] { type1, type2 }, codeTypeReference.TypeArguments.Cast<CodeTy… in TypeArguments_AddMultiple_ReturnsExpected()
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.CodeDom/tests/CodeExpressions/
H A DCodeMethodReferenceExpressionTests.cs41 yield return new object[] { new CodePrimitiveExpression(), "", new CodeTypeReference[0] }; in Ctor_CodeExpression_String_ParamsCodeExpression_TestData()
42 … { new CodePrimitiveExpression("Value"), "Length", new CodeTypeReference[] { new CodeTypeReference in Ctor_CodeExpression_String_ParamsCodeExpression_TestData()
47 …public void Ctor(CodeExpression targetObject, string methodName, CodeTypeReference[] typeArguments) in Ctor()
52 …Assert.Equal(typeArguments ?? new CodeTypeReference[0], methodReference.TypeArguments.Cast<CodeTyp… in Ctor()
58 CodeTypeReference[] parameters = new CodeTypeReference[] { null }; in Ctor_NullObjectInParameters_ThrowsArgumentNullException()
85 CodeTypeReference type1 = new CodeTypeReference(typeof(int)); in TypeArguments_AddMultiple_ReturnsExpected()
87 …Assert.Equal(new CodeTypeReference[] { type1 }, methodReference.TypeArguments.Cast<CodeTypeReferen… in TypeArguments_AddMultiple_ReturnsExpected()
89 CodeTypeReference type2 = new CodeTypeReference(typeof(char)); in TypeArguments_AddMultiple_ReturnsExpected()
91 …Assert.Equal(new CodeTypeReference[] { type1, type2 }, methodReference.TypeArguments.Cast<CodeType… in TypeArguments_AddMultiple_ReturnsExpected()
/dports/lang/mono/mono-5.10.1.57/mcs/class/System.Runtime.Serialization/ReferenceSources/
H A DSimplifiedCodeTypeReference.cs27 class CodeTypeReference { class
32 private CodeTypeReference arrayElementType;
34 private List<CodeTypeReference> typeArguments;
40 public CodeTypeReference() { in CodeTypeReference() method in System.Runtime.Serialization.CodeTypeReference
46 public CodeTypeReference(Type type) { in CodeTypeReference() method in System.Runtime.Serialization.CodeTypeReference
78 public CodeTypeReference(string typeName) { in CodeTypeReference() method in System.Runtime.Serialization.CodeTypeReference
213CodeTypeReference type = new CodeTypeReference(typeName.Substring(0, end + 1), Options); in Initialize()
246 …public CodeTypeReference(string typeName, params CodeTypeReference[] typeArguments) : this(typeNam… in CodeTypeReference() method in System.Runtime.Serialization.CodeTypeReference
264 public CodeTypeReference(CodeTypeReference arrayType, int rank) { in CodeTypeReference() method in System.Runtime.Serialization.CodeTypeReference
273 public CodeTypeReference ArrayElementType {
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/Common/src/System/CodeDom/
H A DCodeTypeReferenceCollection.cs27 public CodeTypeReferenceCollection(CodeTypeReference[] value) in CodeTypeReferenceCollection()
32 public CodeTypeReference this[int index]
34 get { return ((CodeTypeReference)(List[index])); }
38 public int Add(CodeTypeReference value) => List.Add(value);
40 public void Add(string value) => Add(new CodeTypeReference(value)); in Add()
42 public void Add(Type value) => Add(new CodeTypeReference(value));
44 public void AddRange(CodeTypeReference[] value) in AddRange()
71 public bool Contains(CodeTypeReference value) => List.Contains(value);
75 public int IndexOf(CodeTypeReference value) => List.IndexOf(value);
77 public void Insert(int index, CodeTypeReference value) => List.Insert(index, value); in Insert()
[all …]
H A DCodeTypeReference.cs28 public class CodeTypeReference : CodeObject class
30 internal class CodeTypeReference : CodeObject
38 public CodeTypeReference() in CodeTypeReference() method in System.CodeDom.CodeTypeReference
45 public CodeTypeReference(Type type) in CodeTypeReference() method in System.CodeDom.CodeTypeReference
78 public CodeTypeReference(string typeName) in CodeTypeReference() method in System.CodeDom.CodeTypeReference
239CodeTypeReference type = new CodeTypeReference(typeName.Substring(0, end + 1), Options); in Initialize()
278 …public CodeTypeReference(string typeName, params CodeTypeReference[] typeArguments) : this(typeNam… in CodeTypeReference() method in System.CodeDom.CodeTypeReference
294 public CodeTypeReference(string baseType, int rank) in CodeTypeReference() method in System.CodeDom.CodeTypeReference
298 ArrayElementType = new CodeTypeReference(baseType); in CodeTypeReference()
301 public CodeTypeReference(CodeTypeReference arrayType, int rank) in CodeTypeReference() method in System.CodeDom.CodeTypeReference
[all …]
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System/compmod/system/codedom/
H A DCodeTypeReferenceCollection.cs56 public CodeTypeReference this[int index] {
58 return ((CodeTypeReference)(List[index]));
69 public int Add(CodeTypeReference value) { in Add()
77 Add(new CodeTypeReference(value)); in Add()
84 Add(new CodeTypeReference(value)); in Add()
90 public void AddRange(CodeTypeReference[] value) { in AddRange()
118 public bool Contains(CodeTypeReference value) { in Contains()
126 public void CopyTo(CodeTypeReference[] array, int index) { in CopyTo()
134 public int IndexOf(CodeTypeReference value) { in IndexOf()
141 public void Insert(int index, CodeTypeReference value) { in Insert()
[all …]
H A DCodeTypeReference.cs39 public class CodeTypeReference : CodeObject { class
44 private CodeTypeReference arrayElementType;
52 public CodeTypeReference() { in CodeTypeReference() method in System.CodeDom.CodeTypeReference
58 public CodeTypeReference(Type type) { in CodeTypeReference() method in System.CodeDom.CodeTypeReference
90 public CodeTypeReference(string typeName) { in CodeTypeReference() method in System.CodeDom.CodeTypeReference
225CodeTypeReference type = new CodeTypeReference(typeName.Substring(0, end + 1), Options); in Initialize()
258 …public CodeTypeReference(string typeName, params CodeTypeReference[] typeArguments) : this(typeNam… in CodeTypeReference() method in System.CodeDom.CodeTypeReference
264 public CodeTypeReference(CodeTypeParameter typeParameter): in CodeTypeReference() method in System.CodeDom.CodeTypeReference
272 public CodeTypeReference(string baseType, int rank) { in CodeTypeReference() method in System.CodeDom.CodeTypeReference
281 public CodeTypeReference(CodeTypeReference arrayType, int rank) { in CodeTypeReference() method in System.CodeDom.CodeTypeReference
[all …]
H A DCodeArrayCreateExpression.cs27 private CodeTypeReference createType;
55 this.createType = new CodeTypeReference(createType); in CodeArrayCreateExpression()
63 this.createType = new CodeTypeReference(createType); in CodeArrayCreateExpression()
73 public CodeArrayCreateExpression(CodeTypeReference createType, int size) { in CodeArrayCreateExpression()
82 this.createType = new CodeTypeReference(createType); in CodeArrayCreateExpression()
90 this.createType = new CodeTypeReference(createType); in CodeArrayCreateExpression()
100 public CodeArrayCreateExpression(CodeTypeReference createType, CodeExpression size) { in CodeArrayCreateExpression()
109 this.createType = new CodeTypeReference(createType); in CodeArrayCreateExpression()
117 this.createType = new CodeTypeReference(createType); in CodeArrayCreateExpression()
127 public CodeTypeReference CreateType {
[all …]
H A DCodeVariableDeclarationStatement.cs28 private CodeTypeReference type;
45 public CodeVariableDeclarationStatement(CodeTypeReference type, string name) { in CodeVariableDeclarationStatement()
54 Type = new CodeTypeReference(type); in CodeVariableDeclarationStatement()
62 Type = new CodeTypeReference(type); in CodeVariableDeclarationStatement()
72 …public CodeVariableDeclarationStatement(CodeTypeReference type, string name, CodeExpression initEx… in CodeVariableDeclarationStatement()
82 Type = new CodeTypeReference(type); in CodeVariableDeclarationStatement()
91 Type = new CodeTypeReference(type); in CodeVariableDeclarationStatement()
129 public CodeTypeReference Type {
132 type = new CodeTypeReference("");
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.CodeDom/src/System/CodeDom/
H A DCodeArrayCreateExpression.cs11 private CodeTypeReference _createType;
25 _createType = new CodeTypeReference(createType); in CodeArrayCreateExpression()
31 _createType = new CodeTypeReference(createType); in CodeArrayCreateExpression()
35 public CodeArrayCreateExpression(CodeTypeReference createType, int size) in CodeArrayCreateExpression()
43 _createType = new CodeTypeReference(createType); in CodeArrayCreateExpression()
49 _createType = new CodeTypeReference(createType); in CodeArrayCreateExpression()
53 public CodeArrayCreateExpression(CodeTypeReference createType, CodeExpression size) in CodeArrayCreateExpression()
61 _createType = new CodeTypeReference(createType); in CodeArrayCreateExpression()
67 _createType = new CodeTypeReference(createType); in CodeArrayCreateExpression()
71 public CodeTypeReference CreateType
[all …]
H A DCodeVariableDeclarationStatement.cs10 private CodeTypeReference _type;
15 public CodeVariableDeclarationStatement(CodeTypeReference type, string name) in CodeVariableDeclarationStatement()
23 Type = new CodeTypeReference(type); in CodeVariableDeclarationStatement()
29 Type = new CodeTypeReference(type); in CodeVariableDeclarationStatement()
33 …public CodeVariableDeclarationStatement(CodeTypeReference type, string name, CodeExpression initEx… in CodeVariableDeclarationStatement()
42 Type = new CodeTypeReference(type); in CodeVariableDeclarationStatement()
49 Type = new CodeTypeReference(type); in CodeVariableDeclarationStatement()
62 public CodeTypeReference Type
64 get { return _type ?? (_type = new CodeTypeReference("")); }
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.CodeDom/tests/CodeCollections/
H A DCodeTypeReferenceCollectionTests.cs9 …peReferenceCollectionTests : CodeCollectionTestBase<CodeTypeReferenceCollection, CodeTypeReference>
12 …public override CodeTypeReferenceCollection CtorArray(CodeTypeReference[] array) => new CodeTypeRe…
17 …public override CodeTypeReference GetItem(CodeTypeReferenceCollection collection, int index) => co… in GetItem()
18 …ide void SetItem(CodeTypeReferenceCollection collection, int index, CodeTypeReference value) => co… in SetItem()
20 …public override void AddRange(CodeTypeReferenceCollection collection, CodeTypeReference[] array) =… in AddRange()
23 …public override object Add(CodeTypeReferenceCollection collection, CodeTypeReference obj) => colle… in Add()
27 …public override void Remove(CodeTypeReferenceCollection collection, CodeTypeReference value) => co… in Remove()
29 …public override int IndexOf(CodeTypeReferenceCollection collection, CodeTypeReference value) => co… in IndexOf()
30 …public override bool Contains(CodeTypeReferenceCollection collection, CodeTypeReference value) => … in Contains()
42 Assert.Equal(new CodeTypeReference(type).BaseType, collection[0].BaseType); in Add_String()
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.CodeDom/tests/CodeTypeMembers/
H A DCodeMemberEventTests.cs23 public void Type_Set_Get_ReturnsExpected(CodeTypeReference type) in Type_Set_Get_ReturnsExpected()
26 Assert.Equal((type ?? new CodeTypeReference("")).BaseType, memberEvent.Type.BaseType); in Type_Set_Get_ReturnsExpected()
31 public void PrivateImplementationType_Set_Get_ReturnsExpected(CodeTypeReference type) in PrivateImplementationType_Set_Get_ReturnsExpected()
42 CodeTypeReference type1 = new CodeTypeReference(typeof(int)); in ImplementationTypes_AddMultiple_ReturnsExpected()
44 …Assert.Equal(new CodeTypeReference[] { type1 }, memberEvent.ImplementationTypes.Cast<CodeTypeRefer… in ImplementationTypes_AddMultiple_ReturnsExpected()
46 CodeTypeReference type2 = new CodeTypeReference(typeof(int)); in ImplementationTypes_AddMultiple_ReturnsExpected()
48 …Assert.Equal(new CodeTypeReference[] { type1, type2 }, memberEvent.ImplementationTypes.Cast<CodeTy… in ImplementationTypes_AddMultiple_ReturnsExpected()
H A DCodeMemberMethodTests.cs29 public void ReturnType_Set_Get_ReturnsExpected(CodeTypeReference type) in ReturnType_Set_Get_ReturnsExpected()
32 Assert.Equal((type ?? new CodeTypeReference("")).BaseType, method.ReturnType.BaseType); in ReturnType_Set_Get_ReturnsExpected()
77 …nExpression parameter1 = new CodeParameterDeclarationExpression(new CodeTypeReference(typeof(int))… in Parameters_AddMultiple_ReturnsExpected()
98 …onExpression parameter = new CodeParameterDeclarationExpression(new CodeTypeReference(typeof(int))… in Parameters_Get_CallsPopulateParametersOnce()
111 public void PrivateImplementationType_Set_Get_ReturnsExpected(CodeTypeReference type) in PrivateImplementationType_Set_Get_ReturnsExpected()
122 CodeTypeReference type1 = new CodeTypeReference(typeof(int)); in ImplementationTypes_AddMultiple_ReturnsExpected()
124 …Assert.Equal(new CodeTypeReference[] { type1 }, method.ImplementationTypes.Cast<CodeTypeReference>… in ImplementationTypes_AddMultiple_ReturnsExpected()
126 CodeTypeReference type2 = new CodeTypeReference(typeof(int)); in ImplementationTypes_AddMultiple_ReturnsExpected()
128 …Assert.Equal(new CodeTypeReference[] { type1, type2 }, method.ImplementationTypes.Cast<CodeTypeRef… in ImplementationTypes_AddMultiple_ReturnsExpected()
143 CodeTypeReference type = new CodeTypeReference(typeof(int)); in ImplementationTypes_Get_CallsPopulateImplementationTypesOnce()
[all …]
H A DCodeMemberPropertyTests.cs31 public void Type_Set_Get_ReturnsExpected(CodeTypeReference type) in Type_Set_Get_ReturnsExpected()
34 Assert.Equal((type ?? new CodeTypeReference("")).BaseType, property.Type.BaseType); in Type_Set_Get_ReturnsExpected()
39 public void PrivateImplementationType_Set_Get_ReturnsExpected(CodeTypeReference type) in PrivateImplementationType_Set_Get_ReturnsExpected()
125 …nExpression parameter1 = new CodeParameterDeclarationExpression(new CodeTypeReference(typeof(int))… in Parameters_AddMultiple_ReturnsExpected()
129 …nExpression parameter2 = new CodeParameterDeclarationExpression(new CodeTypeReference(typeof(int))… in Parameters_AddMultiple_ReturnsExpected()
139 CodeTypeReference type1 = new CodeTypeReference(typeof(int)); in ImplementationTypes_AddMultiple_ReturnsExpected()
141 …Assert.Equal(new CodeTypeReference[] { type1 }, property.ImplementationTypes.Cast<CodeTypeReferenc… in ImplementationTypes_AddMultiple_ReturnsExpected()
143 CodeTypeReference type2 = new CodeTypeReference(typeof(int)); in ImplementationTypes_AddMultiple_ReturnsExpected()
145 …Assert.Equal(new CodeTypeReference[] { type1, type2 }, property.ImplementationTypes.Cast<CodeTypeR… in ImplementationTypes_AddMultiple_ReturnsExpected()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.CodeDom/tests/
H A DCSharpCodeGenerationTests.cs116 field.Type = new CodeTypeReference(typeof(int)); in AccessingFields()
123 field.Type = new CodeTypeReference(typeof(int)); in AccessingFields()
130 field.Type = new CodeTypeReference(typeof(int)); in AccessingFields()
2460CodeTypeReference typeRef = new CodeTypeReference("System.Nullable", CodeTypeReferenceOptions.Glob… in GlobalKeyword()
2493 CodeTypeReference ctr = new CodeTypeReference(typeof(Math), ctro); in GlobalKeyword()
3365 …s1.BaseTypes.Add(new CodeTypeReference("Dictionary", new CodeTypeReference[] { new CodeTypeReferen… in GenericTypesAndConstraints()
3372 CodeTypeReference iComparableT = new CodeTypeReference("IComparable"); in GenericTypesAndConstraints()
3402 var myClass = new CodeTypeReference( in GenericTypesAndConstraints()
3404 new CodeTypeReference[] { in GenericTypesAndConstraints()
3406 new CodeTypeReference("List", in GenericTypesAndConstraints()
[all …]
H A DVBCodeGenerationTests.cs84 field.Type = new CodeTypeReference(typeof(int)); in AccessingFields()
91 field.Type = new CodeTypeReference(typeof(int)); in AccessingFields()
98 field.Type = new CodeTypeReference(typeof(int)); in AccessingFields()
2257CodeTypeReference typeRef = new CodeTypeReference("System.Nullable", CodeTypeReferenceOptions.Glob… in GlobalKeyword()
2290 CodeTypeReference ctr = new CodeTypeReference(typeof(Math), ctro); in GlobalKeyword()
3185 …s1.BaseTypes.Add(new CodeTypeReference("Dictionary", new CodeTypeReference[] { new CodeTypeReferen… in GenericTypesAndConstraints()
3192 CodeTypeReference iComparableT = new CodeTypeReference("IComparable"); in GenericTypesAndConstraints()
3222 var myClass = new CodeTypeReference( in GenericTypesAndConstraints()
3224 new CodeTypeReference[] { in GenericTypesAndConstraints()
3226 new CodeTypeReference("List", in GenericTypesAndConstraints()
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.CodeDom/tests/Other/
H A DCodeCatchClauseTests.cs20 …Assert.Equal(new CodeTypeReference(typeof(Exception)).BaseType, catchClause.CatchExceptionType.Bas… in Ctor_Default()
36 yield return new object[] { "", new CodeTypeReference() }; in Ctor_String_CodeTypeReference_TestData()
37 yield return new object[] { "Value1", new CodeTypeReference(typeof(ArgumentException)) }; in Ctor_String_CodeTypeReference_TestData()
42 public void Ctor_String_CodeTypeReference(string localName, CodeTypeReference catchExceptionType) in Ctor_String_CodeTypeReference()
46 …Assert.Equal((catchExceptionType ?? new CodeTypeReference(typeof(Exception))).BaseType, catchClaus… in Ctor_String_CodeTypeReference()
53 …yield return new object[] { "", new CodeTypeReference(), new CodeStatement[] { new CodeCommentStat… in Ctor_String_CodeTypeReference_ParamsCodeStatement_TestData()
63 …Assert.Equal((catchExceptionType ?? new CodeTypeReference(typeof(Exception))).BaseType, catchClaus… in Ctor_String_CodeTypeReference_ParamsCodeStatement()
70 …gumentNullException>("value", () => new CodeCatchClause("name", new CodeTypeReference(typeof(void)… in Ctor_NullStatements_ThrowsArgumentNullException()
77 …gumentNullException>("value", () => new CodeCatchClause("name", new CodeTypeReference(typeof(void)… in Ctor_NullObjectInStatements_ThrowsArgumentNullException()
91 public void CatchExceptionType_Set_Get_ReturnsExpected(CodeTypeReference value) in CatchExceptionType_Set_Get_ReturnsExpected()
[all …]
/dports/lang/mono/mono-5.10.1.57/mcs/class/System/Test/System.CodeDom.Compiler/
H A DCodeGeneratorFromTypeTestBase.cs261 evt.Type = new CodeTypeReference (typeof (int)); in GenerateEventMembersType2()
274 evt.Type = new CodeTypeReference (typeof (int)); in GenerateEventImplementationTypes()
289 evt.Type = new CodeTypeReference (typeof (int)); in GenerateEventPrivateImplementationType()
303 evt.Type = new CodeTypeReference (typeof (int)); in GenerateEventImplementationTypeOrder()
337 fld.Type = new CodeTypeReference (typeof (int)); in GenerateFieldMembersType()
404 property.Type = new CodeTypeReference (typeof (int)); in GeneratePropertyMembersType()
417 property.Type = new CodeTypeReference (typeof (int)); in GeneratePropertyParameters()
443 property.Type = new CodeTypeReference (typeof (int)); in GeneratePropertyIndexer()
467 property.Type = new CodeTypeReference (typeof (int)); in GeneratePropertyImplementationTypes()
1114 new CodeTypeReference ("System.Nullable", in GenerateGenericCodeTypeReferences()
[all …]
/dports/lang/mono/mono-5.10.1.57/mcs/class/System.ServiceModel/System.ServiceModel.Description/
H A DServiceContractGenerator.cs92 public CodeTypeReference GetReference () in GetReference()
103 reference = new CodeTypeReference (tdecl.Name); in ContractCacheEntry()
106 readonly CodeTypeReference reference;
196 public CodeTypeReference GenerateServiceContractType ( in GenerateServiceContractType()
268 CodeTypeReference clientBase = new CodeTypeReference (typeof (ClientBase<>)); in GenerateProxyClass()
274 type.BaseTypes.Add (new CodeTypeReference (cd.Name)); in GenerateProxyClass()
326 new CodeTypeReference (typeof (Binding)), "binding")); in GenerateProxyClass()
381 new CodeTypeReference ( in ExportInterface_internal()
488 new CodeTypeReference (pi.ParameterType), in ExportParameters()
825 parts [i].CodeTypeReference, in ExportMessages()
[all …]

12345678910>>...12