//------------------------------------------------------------------------------
// This file is autogenerated by gensr.pl utilitity. Do not modify.
//------------------------------------------------------------------------------

namespace Microsoft.DevApps.WebServices.XsdResources {
    using System;
    using System.Reflection;
    using System.Globalization;
    using System.Resources;
    using System.Text;
    using System.Threading;
    using System.ComponentModel;

    /// <summary>
    ///    AutoGenerated resource class. Usage:
    ///
    ///        string s = Res.GetString(Res.MyIdenfitier);
    /// </summary>
    internal sealed class Res {
        internal const string Logo = "Logo";
        internal const string HelpDescription = "HelpDescription";
        internal const string HelpUsage = "HelpUsage";
        internal const string HelpOptions = "HelpOptions";
        internal const string HelpClasses = "HelpClasses";
        internal const string HelpDataset = "HelpDataset";
        internal const string HelpElement = "HelpElement";
        internal const string HelpLanguage = "HelpLanguage";
        internal const string HelpNamespace = "HelpNamespace";
        internal const string HelpNoLogo = "HelpNoLogo";
        internal const string HelpOut = "HelpOut";
        internal const string HelpType = "HelpType";
        internal const string HelpUri = "HelpUri";
        internal const string HelpArguments = "HelpArguments";
        internal const string HelpArgumentsDescription = "HelpArgumentsDescription";
        internal const string MoreHelp = "MoreHelp";
        internal const string Error = "Error";
        internal const string ErrInvalidArgument = "ErrInvalidArgument";
        internal const string ErrLanguage = "ErrLanguage";
        internal const string ErrLoadAssembly = "ErrLoadAssembly";
        internal const string ErrUnknownNodeType = "ErrUnknownNodeType";
        internal const string ErrInputFileTypes = "ErrInputFileTypes";
        internal const string ErrClassOrDataset = "ErrClassOrDataset";
        internal const string ErrGeneral = "ErrGeneral";
        internal const string ErrGenerateDataSetClass = "ErrGenerateDataSetClass";
        internal const string ErrGenerateClassesForSchema = "ErrGenerateClassesForSchema";
        internal const string Warning = "Warning";
        internal const string UnhandledNode = "UnhandledNode";
        internal const string FileNotFound = "FileNotFound";
        internal const string SchemaValidationWarning = "SchemaValidationWarning";
        internal const string SchemaValidationWarningDetails = "SchemaValidationWarningDetails";
        internal const string NoClassesGenerated = "NoClassesGenerated";
        internal const string InfoWrittingFile = "InfoWrittingFile";
        internal const string InfoVersionComment = "InfoVersionComment";

        static Res loader = null;
        ResourceManager resources;
        
        private Res() {
            resources = new System.Resources.ResourceManager("XSD.xsd", this.GetType().Module.Assembly);
        }
        
        private static Res GetLoader() {
            if (loader == null) {
                lock(typeof(Res)) {
                   if (loader == null) {
                       loader = new Res();
                   }
               }
            }
            
            return loader;
        }

        public static string GetString(string name, params object[] args) {
            // null CultureInfo: let ResouceManager determine the culture
            return GetString(null, name, args);
        }
        public static string GetString(CultureInfo culture, string name, params object[] args) {
            Res sys = GetLoader();
            if (sys == null)
                return null;
            string res = sys.resources.GetString(name, culture);

            if (args != null && args.Length > 0) {
                return String.Format(res, args);
            }
            else {
                return res;
            }
        }

        public static string GetString(string name) {
            return GetString(null, name);
        }
        public static string GetString(CultureInfo culture, string name) {
            Res sys = GetLoader();
            if (sys == null)
                return null;
            return sys.resources.GetString(name, culture);
        }
        public static bool GetBoolean(string name) {
            return GetBoolean(name);
        }
        public static bool GetBoolean(CultureInfo culture, string name) {
            bool val = false;;

            Res sys = GetLoader();
            if (sys != null) {
                object res = sys.resources.GetObject(name, culture);
                if (res is bool) {
                    val = (bool)res;
                }
            }
            return val;
        }
        public static char GetChar(string name) {
            return GetChar(null, name);
        }
        public static char GetChar(CultureInfo culture, string name) {
            char val = (char)0;

            Res sys = GetLoader();
            if (sys != null) {
                object res = sys.resources.GetObject(name, culture);
                if (res is char) {
                    val = (char)res;
                }
            }
            return val;
        }
        public static byte GetByte(string name) {
            return GetByte(null, name);
        }
        public static byte GetByte(CultureInfo culture, string name) {
            byte val = (byte)0;

            Res sys = GetLoader();
            if (sys != null) {
                object res = sys.resources.GetObject(name, culture);
                if (res is byte) {
                    val = (byte)res;
                }
            }
            return val;
        }
        public static short GetShort(string name) {
            return GetShort(null, name);
        }
        public static short GetShort(CultureInfo culture, string name) {
            short val = (short)0;

            Res sys = GetLoader();
            if (sys != null) {
                object res = sys.resources.GetObject(name, culture);
                if (res is short) {
                    val = (short)res;
                }
            }
            return val;
        }
        public static int GetInt(string name) {
            return GetInt(null, name);
        }
        public static int GetInt(CultureInfo culture, string name) {
            int val = 0;

            Res sys = GetLoader();
            if (sys != null) {
                object res = sys.resources.GetObject(name, culture);
                if (res is int) {
                    val = (int)res;
                }
            }
            return val;
        }
        public static long GetLong(string name) {
            return GetLong(null, name);
        }
        public static long GetLong(CultureInfo culture, string name) {
            long val = 0L;

            Res sys = GetLoader();
            if (sys != null) {
                object res = sys.resources.GetObject(name, culture);
                if (res is long) {
                    val = (long)res;
                }
            }
            return val;
        }
        public static float GetFloat(string name) {
            return GetFloat(null, name);
        }
        public static float GetFloat(CultureInfo culture, string name) {
            float val = 0.0f;

            Res sys = GetLoader();
            if (sys == null) {
                object res = sys.resources.GetObject(name, culture);
                if (res is float) {
                    val = (float)res;
                }
            }
            return val;
        }
        public static double GetDouble(string name) {
            return GetDouble(null, name);
        }
        public static double GetDouble(CultureInfo culture, string name) {
            double val = 0.0;

            Res sys = GetLoader();
            if (sys == null) {
                object res = sys.resources.GetObject(name, culture);
                if (res is double) {
                    val = (double)res;
                }
            }
            return val;
        }
        public static object GetObject(string name) {
            return GetObject(null, name);
        }
        public static object GetObject(CultureInfo culture, string name) {
            Res sys = GetLoader();
            if (sys == null)
                return null;
            return sys.resources.GetObject(name, culture);
        }
    }
}
