mirror of https://github.com/icsharpcode/ILSpy.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
184 lines
3.0 KiB
184 lines
3.0 KiB
using CustomAttributeConflicts.NS1; |
|
using CustomAttributeConflicts.NS2; |
|
using CustomAttributeConflicts.NSWithConflictingTypes; |
|
using CustomAttributeConflicts.NSWithConflictingTypes2; |
|
using System; |
|
|
|
namespace CustomAttributeConflicts |
|
{ |
|
internal class AttributeWithSameNameAsNormalType |
|
{ |
|
} |
|
|
|
internal class TestClass |
|
{ |
|
[Other] |
|
public void Test1() |
|
{ |
|
} |
|
|
|
[CustomAttributeConflicts.NS1.Simple] |
|
public void Test2() |
|
{ |
|
} |
|
|
|
[CustomAttributeConflicts.NS2.Simple] |
|
public void Test3() |
|
{ |
|
} |
|
|
|
[CustomAttributeConflicts.NS1.AttributeWithSameNameAsNormalType] |
|
public void Test4() |
|
{ |
|
} |
|
|
|
[@My] |
|
public void Test5() |
|
{ |
|
} |
|
|
|
[@MyAttribute] |
|
public void Test6() |
|
{ |
|
} |
|
|
|
[CustomAttributeConflicts.NSWithConflictingTypes2.@MyOther] |
|
public void Test7() |
|
{ |
|
} |
|
|
|
[CustomAttributeConflicts.NSWithConflictingTypes2.@MyOtherAttribute] |
|
public void Test8() |
|
{ |
|
} |
|
} |
|
} |
|
// The order of types in namespaces is completely different when compiling with the Roslyn compiler |
|
#if ROSLYN |
|
namespace CustomAttributeConflicts.NS1 |
|
{ |
|
internal class OtherAttribute : Attribute |
|
{ |
|
} |
|
internal class SimpleAttribute : Attribute |
|
{ |
|
} |
|
} |
|
namespace CustomAttributeConflicts.NS2 |
|
{ |
|
internal class SimpleAttribute : Attribute |
|
{ |
|
} |
|
} |
|
namespace CustomAttributeConflicts.NS1 |
|
{ |
|
internal class AttributeWithSameNameAsNormalType : Attribute |
|
{ |
|
} |
|
} |
|
namespace CustomAttributeConflicts.NSWithConflictingTypes |
|
{ |
|
internal class My : Attribute |
|
{ |
|
} |
|
internal class MyAttribute : Attribute |
|
{ |
|
} |
|
} |
|
namespace CustomAttributeConflicts.NSWithConflictingTypes2 |
|
{ |
|
|
|
internal class MyOther : Attribute |
|
{ |
|
} |
|
internal class MyOtherAttribute : Attribute |
|
{ |
|
} |
|
internal class MyOtherAttributeAttribute : Attribute |
|
{ |
|
} |
|
} |
|
namespace CustomAttributeConflicts.NSWithConflictingTypes |
|
{ |
|
internal class MyAttributeAttribute : Attribute |
|
{ |
|
} |
|
internal class MyOther : Attribute |
|
{ |
|
} |
|
internal class MyOtherAttribute : Attribute |
|
{ |
|
} |
|
internal class MyOtherAttributeAttribute : Attribute |
|
{ |
|
} |
|
} |
|
#else |
|
namespace CustomAttributeConflicts.NS1 |
|
{ |
|
internal class OtherAttribute : Attribute |
|
{ |
|
} |
|
|
|
internal class SimpleAttribute : Attribute |
|
{ |
|
} |
|
} |
|
|
|
namespace CustomAttributeConflicts.NS2 |
|
{ |
|
internal class SimpleAttribute : Attribute |
|
{ |
|
} |
|
} |
|
|
|
namespace CustomAttributeConflicts.NS1 |
|
{ |
|
internal class AttributeWithSameNameAsNormalType : Attribute |
|
{ |
|
} |
|
} |
|
namespace CustomAttributeConflicts.NSWithConflictingTypes |
|
{ |
|
internal class My : Attribute |
|
{ |
|
} |
|
internal class MyAttribute : Attribute |
|
{ |
|
} |
|
} |
|
namespace CustomAttributeConflicts.NSWithConflictingTypes2 |
|
{ |
|
internal class MyOther : Attribute |
|
{ |
|
} |
|
internal class MyOtherAttribute : Attribute |
|
{ |
|
} |
|
} |
|
namespace CustomAttributeConflicts.NSWithConflictingTypes |
|
{ |
|
internal class MyAttributeAttribute : Attribute |
|
{ |
|
} |
|
|
|
internal class MyOther : Attribute |
|
{ |
|
} |
|
|
|
internal class MyOtherAttribute : Attribute |
|
{ |
|
} |
|
|
|
internal class MyOtherAttributeAttribute : Attribute |
|
{ |
|
} |
|
} |
|
|
|
namespace CustomAttributeConflicts.NSWithConflictingTypes2 |
|
{ |
|
internal class MyOtherAttributeAttribute : Attribute |
|
{ |
|
} |
|
} |
|
#endif
|