You've already forked linux-packaging-mono
Imported Upstream version 5.10.0.69
Former-commit-id: fc39669a0b707dd3c063977486506b6793da2890
This commit is contained in:
parent
d8f8abd549
commit
e2950ec768
@@ -82,11 +82,6 @@ namespace System.Data.Common
|
||||
return InvalidOperation(SR.GetString(SR.ADP_OffsetOutOfRangeException));
|
||||
}
|
||||
|
||||
internal static ArgumentException InvalidDataType(TypeCode typecode)
|
||||
{
|
||||
return Argument(SR.GetString(SR.ADP_InvalidDataType, typecode.ToString()));
|
||||
}
|
||||
|
||||
static internal InvalidOperationException QuotePrefixNotSet(string method)
|
||||
{
|
||||
return InvalidOperation(Res.GetString(Res.ADP_QuotePrefixNotSet, method));
|
||||
@@ -104,11 +99,6 @@ namespace System.Data.Common
|
||||
return ADP.InvalidOperation(SR.GetString(SR.ADP_InvalidDataDirectory));
|
||||
}
|
||||
|
||||
internal static ArgumentException UnknownDataTypeCode(Type dataType, TypeCode typeCode)
|
||||
{
|
||||
return Argument(SR.GetString(SR.ADP_UnknownDataTypeCode, ((int)typeCode).ToString(CultureInfo.InvariantCulture), dataType.FullName));
|
||||
}
|
||||
|
||||
internal static void EscapeSpecialCharacters(string unescapedString, StringBuilder escapedString)
|
||||
{
|
||||
// note special characters list is from character escapes
|
||||
@@ -137,29 +127,6 @@ namespace System.Data.Common
|
||||
return (IntPtr)checked(pbase.ToInt64() + offset);
|
||||
}
|
||||
|
||||
static internal ArgumentOutOfRangeException NotSupportedUserDefinedTypeSerializationFormat(Microsoft.SqlServer.Server.Format value, string method) {
|
||||
return ADP.NotSupportedEnumerationValue(typeof(Microsoft.SqlServer.Server.Format), value.ToString(), method);
|
||||
}
|
||||
|
||||
static internal ArgumentOutOfRangeException InvalidUserDefinedTypeSerializationFormat(Microsoft.SqlServer.Server.Format value) {
|
||||
#if DEBUG
|
||||
switch(value) {
|
||||
case Microsoft.SqlServer.Server.Format.Unknown:
|
||||
case Microsoft.SqlServer.Server.Format.Native:
|
||||
case Microsoft.SqlServer.Server.Format.UserDefined:
|
||||
Debug.Assert(false, "valid UserDefinedTypeSerializationFormat " + value.ToString());
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
return InvalidEnumerationValue(typeof(Microsoft.SqlServer.Server.Format), (int) value);
|
||||
}
|
||||
|
||||
static internal ArgumentOutOfRangeException ArgumentOutOfRange(string message, string parameterName, object value) {
|
||||
ArgumentOutOfRangeException e = new ArgumentOutOfRangeException(parameterName, value, message);
|
||||
TraceExceptionAsReturnValue(e);
|
||||
return e;
|
||||
}
|
||||
|
||||
static internal Exception InvalidXMLBadVersion() {
|
||||
return Argument(Res.GetString(Res.ADP_InvalidXMLBadVersion));
|
||||
}
|
||||
|
Reference in New Issue
Block a user