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

◆ SetMSDataAttribute()

void System.Data.XmlTreeGen.SetMSDataAttribute ( XmlElement root,
Type type )
inlineprivate

Definition at line 1962 of file XmlTreeGen.cs.

1963 {
1965 try
1966 {
1967 if (_targetConverter != null)
1968 {
1970 }
1971 if (!string.IsNullOrEmpty(value))
1972 {
1973 root.SetAttribute("DataType", "urn:schemas-microsoft-com:xml-msdata", value);
1974 }
1975 }
1976 catch (Exception ex) when (ADP.IsCatchableExceptionType(ex))
1977 {
1978 ExceptionBuilder.ThrowMultipleTargetConverter(ex);
1979 }
1980 if (string.IsNullOrEmpty(value))
1981 {
1982 ExceptionBuilder.ThrowMultipleTargetConverter(null);
1983 }
1984 }
static bool IsCatchableExceptionType(Exception e)
Definition ADP.cs:790
static string GetQualifiedName(Type type)
Converter< Type, string > _targetConverter
Definition XmlTreeGen.cs:48
virtual void SetAttribute(string name, string? value)

References System.Data.XmlTreeGen._targetConverter, System.Xml.Dictionary, System.Data.Common.DataStorage.GetQualifiedName(), System.Data.Common.ADP.IsCatchableExceptionType(), System.Xml.XmlElement.SetAttribute(), System.Data.ExceptionBuilder.ThrowMultipleTargetConverter(), System.type, and System.value.

Referenced by System.Data.XmlTreeGen.AddColumnProperties(), and System.Data.XmlTreeGen.AddXdoProperty().