Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SignatureHasElementType.cs
Go to the documentation of this file.
1namespace System.Reflection;
2
3internal abstract class SignatureHasElementType : SignatureType
4{
5 private readonly SignatureType _elementType;
6
7 public sealed override bool IsTypeDefinition => false;
8
9 public sealed override bool IsGenericTypeDefinition => false;
10
11 public sealed override bool IsByRefLike => false;
12
13 public abstract override bool IsSZArray { get; }
14
15 public abstract override bool IsVariableBoundArray { get; }
16
17 public sealed override bool IsConstructedGenericType => false;
18
19 public sealed override bool IsGenericParameter => false;
20
21 public sealed override bool IsGenericTypeParameter => false;
22
23 public sealed override bool IsGenericMethodParameter => false;
24
26
27 internal sealed override SignatureType ElementType => _elementType;
28
29 public sealed override Type[] GenericTypeArguments => Type.EmptyTypes;
30
31 public sealed override int GenericParameterPosition
32 {
33 get
34 {
36 }
37 }
38
39 public sealed override string Name => _elementType.Name + Suffix;
40
41 public sealed override string Namespace => _elementType.Namespace;
42
43 protected abstract string Suffix { get; }
44
49
50 protected sealed override bool HasElementTypeImpl()
51 {
52 return true;
53 }
54
55 protected abstract override bool IsArrayImpl();
56
57 protected abstract override bool IsByRefImpl();
58
59 protected abstract override bool IsPointerImpl();
60
61 public abstract override int GetArrayRank();
62
67
68 public sealed override Type[] GetGenericArguments()
69 {
70 return Type.EmptyTypes;
71 }
72
73 public sealed override string ToString()
74 {
75 return _elementType.ToString() + Suffix;
76 }
77}
static string Arg_NotGenericParameter
Definition SR.cs:346
static string InvalidOperation_NotGenericType
Definition SR.cs:1484
Definition SR.cs:7
static readonly Type[] EmptyTypes
Definition Type.cs:19