@@ -67,8 +67,9 @@ private protected ColumnType(Type rawType, DataKind rawKind)
67
67
public Type RawType { get ; }
68
68
69
69
/// <summary>
70
- /// The DataKind corresponding to RawType, if there is one (zero otherwise). It is equivalent
71
- /// to the result produced by DataKindExtensions.TryGetDataKind(RawType, out kind).
70
+ /// The <see cref="DataKind"/> corresponding to <see cref="RawType"/>, if there is one (<c>default</c> otherwise).
71
+ /// It is equivalent to the result produced by <see cref="DataKindExtensions.TryGetDataKind(Type, out DataKind)"/>.
72
+ /// For external code it would be preferable to operate over <see cref="RawType"/>.
72
73
/// </summary>
73
74
[ BestFriend ]
74
75
internal DataKind RawKind { get ; }
@@ -80,19 +81,19 @@ private protected ColumnType(Type rawType, DataKind rawKind)
80
81
internal bool IsPrimitive { get ; }
81
82
82
83
/// <summary>
83
- /// Equivalent to "this as PrimitiveType".
84
+ /// Equivalent to <c> as <see cref=" PrimitiveType"/></c> .
84
85
/// </summary>
85
86
[ BestFriend ]
86
87
internal PrimitiveType AsPrimitive => IsPrimitive ? ( PrimitiveType ) this : null ;
87
88
88
89
/// <summary>
89
- /// Whether this type is a standard numeric type.
90
+ /// Whether this type is a standard numeric type. External code should use <c>is <see cref="NumberType"/></c>.
90
91
/// </summary>
91
92
[ BestFriend ]
92
93
internal bool IsNumber { get ; }
93
94
94
95
/// <summary>
95
- /// Whether this type is the standard text type.
96
+ /// Whether this type is the standard text type. External code should use <c>is <see cref="TextType"/></c>.
96
97
/// </summary>
97
98
[ BestFriend ]
98
99
internal bool IsText
@@ -108,7 +109,7 @@ internal bool IsText
108
109
}
109
110
110
111
/// <summary>
111
- /// Whether this type is the standard boolean type.
112
+ /// Whether this type is the standard boolean type. External code should use <c>is <see cref="BoolType"/></c>.
112
113
/// </summary>
113
114
[ BestFriend ]
114
115
internal bool IsBool
@@ -134,12 +135,13 @@ internal bool IsBool
134
135
/// <summary>
135
136
/// Whether this type is a key type, which implies that the order of values is not significant,
136
137
/// and arithmetic is non-sensical. A key type can define a cardinality.
138
+ /// External code should use <c>is <see cref="KeyType"/></c>.
137
139
/// </summary>
138
140
[ BestFriend ]
139
141
internal bool IsKey { get ; }
140
142
141
143
/// <summary>
142
- /// Equivalent to "this as KeyType".
144
+ /// Equivalent to <c> as <see cref=" KeyType"/></c> .
143
145
/// </summary>
144
146
[ BestFriend ]
145
147
internal KeyType AsKey => IsKey ? ( KeyType ) this : null ;
@@ -165,27 +167,26 @@ internal bool IsBool
165
167
internal bool IsVector { get ; }
166
168
167
169
/// <summary>
168
- /// Equivalent to "this as VectorType".
170
+ /// Equivalent to <c> as <see cref=" VectorType"/></c> .
169
171
/// </summary>
170
172
[ BestFriend ]
171
173
internal VectorType AsVector => IsVector ? ( VectorType ) this : null ;
172
174
173
175
/// <summary>
174
- /// For non-vector types, this returns the column type itself (i.e., return this).
176
+ /// For non-vector types, this returns the column type itself (i.e., return <c> this</c> ).
175
177
/// </summary>
176
178
[ BestFriend ]
177
179
internal ColumnType ItemType => ItemTypeCore ;
178
180
179
181
/// <summary>
180
182
/// Whether this is a vector type with known size. Returns false for non-vector types.
181
- /// Equivalent to VectorSize > 0 .
183
+ /// Equivalent to <c><see cref="VectorSize"/> > 0</c> .
182
184
/// </summary>
183
185
[ BestFriend ]
184
186
internal bool IsKnownSizeVector => VectorSize > 0 ;
185
187
186
188
/// <summary>
187
- /// Zero return means either it's not a vector or the size is unknown. Equivalent to
188
- /// IsVector ? ValueCount : 0 and to IsKnownSizeVector ? ValueCount : 0.
189
+ /// Zero return means either it's not a vector or the size is unknown.
189
190
/// </summary>
190
191
[ BestFriend ]
191
192
internal int VectorSize => VectorSizeCore ;
0 commit comments