Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
DbDataRecord.cs
Go to the documentation of this file.
3
4namespace System.Data.Common;
5
7{
8 public abstract int FieldCount { get; }
9
10 public abstract object this[int i] { get; }
11
12 public abstract object this[string name] { get; }
13
14 public abstract bool GetBoolean(int i);
15
16 public abstract byte GetByte(int i);
17
18 public abstract long GetBytes(int i, long dataIndex, byte[]? buffer, int bufferIndex, int length);
19
20 public abstract char GetChar(int i);
21
22 public abstract long GetChars(int i, long dataIndex, char[]? buffer, int bufferIndex, int length);
23
24 public IDataReader GetData(int i)
25 {
26 return GetDbDataReader(i);
27 }
28
29 protected virtual DbDataReader GetDbDataReader(int i)
30 {
31 throw ADP.NotSupported();
32 }
33
34 public abstract string GetDataTypeName(int i);
35
36 public abstract DateTime GetDateTime(int i);
37
38 public abstract decimal GetDecimal(int i);
39
40 public abstract double GetDouble(int i);
41
42 [return: DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicFields | DynamicallyAccessedMemberTypes.PublicProperties)]
43 public abstract Type GetFieldType(int i);
44
45 public abstract float GetFloat(int i);
46
47 public abstract Guid GetGuid(int i);
48
49 public abstract short GetInt16(int i);
50
51 public abstract int GetInt32(int i);
52
53 public abstract long GetInt64(int i);
54
55 public abstract string GetName(int i);
56
57 public abstract int GetOrdinal(string name);
58
59 public abstract string GetString(int i);
60
61 public abstract object GetValue(int i);
62
63 public abstract int GetValues(object[] values);
64
65 public abstract bool IsDBNull(int i);
66
71
73 {
74 return null;
75 }
76
78 {
79 return null;
80 }
81
82 [RequiresUnreferencedCode("Generic TypeConverters may require the generic types to be annotated. For example, NullableConverter requires the underlying type to be DynamicallyAccessedMembers All.")]
87
88 [RequiresUnreferencedCode("The built-in EventDescriptor implementation uses Reflection which requires unreferenced code.")]
93
94 [RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered.")]
99
100 [RequiresUnreferencedCode("Editors registered in TypeDescriptor.AddEditorTable may be trimmed.")]
101 object ICustomTypeDescriptor.GetEditor(Type editorBaseType)
102 {
103 return null;
104 }
105
110
111 [RequiresUnreferencedCode("The public parameterless constructor or the 'Default' static field may be trimmed from the Attribute's Type.")]
116
117 [RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered.")]
119 {
120 return ((ICustomTypeDescriptor)this).GetProperties((Attribute[]?)null);
121 }
122
123 [RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered. The public parameterless constructor or the 'Default' static field may be trimmed from the Attribute's Type.")]
128
130 {
131 return this;
132 }
133}
static NotSupportedException NotSupported()
Definition ADP.cs:753
int GetValues(object[] values)
virtual DbDataReader GetDbDataReader(int i)
long GetChars(int i, long dataIndex, char[]? buffer, int bufferIndex, int length)
long GetBytes(int i, long dataIndex, byte[]? buffer, int bufferIndex, int length)
object? GetEditor(Type editorBaseType)
object? GetPropertyOwner(PropertyDescriptor? pd)
PropertyDescriptorCollection GetProperties()
EventDescriptorCollection GetEvents()