Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ImplementsInterfaces()

static void System.Data.Common.DataStorage.ImplementsInterfaces ( StorageType typeCode,
Type dataType,
out bool sqlType,
out bool nullable,
out bool xmlSerializable,
out bool changeTracking,
out bool revertibleChangeTracking )
inlinestaticpackageinherited

Definition at line 387 of file DataStorage.cs.

388 {
389 if (IsSqlType(typeCode))
390 {
391 sqlType = true;
392 nullable = true;
393 changeTracking = false;
395 xmlSerializable = true;
396 }
397 else if (typeCode != 0)
398 {
399 sqlType = false;
400 nullable = false;
401 changeTracking = false;
403 xmlSerializable = false;
404 }
405 else
406 {
408 sqlType = false;
409 nullable = orAdd.Item1;
410 changeTracking = orAdd.Item2;
412 xmlSerializable = orAdd.Item4;
413 }
414 }
static readonly Func< Type, Tuple< bool, bool, bool, bool > > s_inspectTypeForInterfaces
static bool IsSqlType(StorageType storageType)
static readonly ConcurrentDictionary< Type, Tuple< bool, bool, bool, bool > > s_typeImplementsInterface

References System.Xml.Dictionary, System.Data.Common.DataStorage.IsSqlType(), System.Data.Common.DataStorage.s_inspectTypeForInterfaces, and System.Data.Common.DataStorage.s_typeImplementsInterface.

Referenced by System.Data.DataColumn.UpdateColumnType().