Definition at line 196 of file BlobWriterImpl.cs.
197 {
199 {
201 return;
202 }
204 if (
type.GetTypeInfo().IsEnum)
205 {
207 }
208 if (
type == typeof(
bool))
209 {
211 return;
212 }
213 if (
type == typeof(
int))
214 {
216 return;
217 }
218 if (
type == typeof(
string))
219 {
221 return;
222 }
223 if (
type == typeof(
byte))
224 {
226 return;
227 }
228 if (
type == typeof(
char))
229 {
231 return;
232 }
233 if (
type == typeof(
double))
234 {
236 return;
237 }
238 if (
type == typeof(
short))
239 {
241 return;
242 }
243 if (
type == typeof(
long))
244 {
246 return;
247 }
248 if (
type == typeof(sbyte))
249 {
251 return;
252 }
253 if (
type == typeof(
float))
254 {
256 return;
257 }
258 if (
type == typeof(ushort))
259 {
261 return;
262 }
263 if (
type == typeof(uint))
264 {
266 return;
267 }
268 if (
type == typeof(ulong))
269 {
271 return;
272 }
274 }
static string Format(string resourceFormat, object p1)
static string InvalidConstantValueOfType
References System.SR.Format(), System.Type.GetType(), System.Enum.GetUnderlyingType(), System.SR.InvalidConstantValueOfType, System.type, System.value, and System.writer.