/// <include file='../../doc/snippets/Microsoft.SqlServer.Server/InvalidUdtException.xml' path='docs/members[@name="InvalidUdtException"]/Create/*' /> public static InvalidUdtException Create(Type udtType, string resourceReason = "SqlUdtReason_NoUdtAttribute") { string reason = StringsHelper.GetString(resourceReason); string message = StringsHelper.GetString(Strings.SqlUdt_InvalidUdtMessage, udtType.FullName, reason); InvalidUdtException e = new InvalidUdtException(message); return(e); }
public static string GetResourceString(string res) { StringsHelper sys = GetLoader(); if (sys == null) { return(null); } // If "res" is a resource id, temp will not be null, "res" will contain the retrieved resource string. // If "res" is not a resource id, temp will be null. string temp = sys._resources.GetString(res, Culture); if (temp != null) { res = temp; } return(res); }