Click here to Skip to main content
15,891,902 members
Articles / Web Development / ASP.NET

Customize the Code Generated by the Resources Designer

Rate me:
Please Sign up or sign in to vote.
3.83/5 (6 votes)
19 Dec 2008CPOL8 min read 47.1K   970   38  
Customize the code generated by the resources designer
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:2.0.50727.3053
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace Business.Properties {
    using System;
    
    
    /// <summary>
    /// A strongly-typed resource class, for looking up localized strings, formatting them, etc.
    /// </summary>
    // This class was auto-generated by the StronglyTypedResourceBuilderEx class via the ResXFileCodeGeneratorEx custom tool.
    // To add or remove a member, edit your .ResX file then rerun the ResXFileCodeGeneratorEx custom tool or rebuild your VS.NET project.
    // Copyright (c) Dmytro Kryvko 2006-2008 (http://dmytro.kryvko.googlepages.com/)
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("DMKSoftware.CodeGenerators.Tools.StronglyTypedResourceBuilderEx", "2.4.0.0")]
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
    [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Naming", "CA1724:TypeNamesShouldNotMatchNamespaces")]
    public partial class Resources {
        
        private static global::System.Resources.ResourceManager _resourceManager;
        
        private static object _internalSyncObject;
        
        private static global::System.Globalization.CultureInfo _resourceCulture;
        
        [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
        public Resources() {
        }
        
        /// <summary>
        /// Thread safe lock object used by this class.
        /// </summary>
        public static object InternalSyncObject {
            get {
                if (object.ReferenceEquals(_internalSyncObject, null)) {
                    global::System.Threading.Interlocked.CompareExchange(ref _internalSyncObject, new object(), null);
                }
                return _internalSyncObject;
            }
        }
        
        /// <summary>
        /// Returns the cached ResourceManager instance used by this class.
        /// </summary>
        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
        public static global::System.Resources.ResourceManager ResourceManager {
            get {
                if (object.ReferenceEquals(_resourceManager, null)) {
                    global::System.Threading.Monitor.Enter(InternalSyncObject);
                    try {
                        if (object.ReferenceEquals(_resourceManager, null)) {
                            global::System.Threading.Interlocked.Exchange(ref _resourceManager, new global::System.Resources.ResourceManager("Business.Properties.Resources", typeof(Resources).Assembly));
                        }
                    }
                    finally {
                        global::System.Threading.Monitor.Exit(InternalSyncObject);
                    }
                }
                return _resourceManager;
            }
        }
        
        /// <summary>
        /// Overrides the current thread's CurrentUICulture property for all
        /// resource lookups using this strongly typed resource class.
        /// </summary>
        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
        public static global::System.Globalization.CultureInfo Culture {
            get {
                return _resourceCulture;
            }
            set {
                _resourceCulture = value;
            }
        }
        
        /// <summary>
        /// Looks up a resource 'AudioRes'.
        /// </summary>
        public static System.IO.UnmanagedMemoryStream AudioRes {
            get {
                return ResourceManager.GetStream(ResourceNames.AudioRes, _resourceCulture);
            }
        }
        
        /// <summary>
        /// Looks up a resource 'IconRes'.
        /// </summary>
        public static System.Drawing.Icon IconRes {
            get {
                return ((System.Drawing.Icon)(ResourceManager.GetObject(ResourceNames.IconRes, _resourceCulture)));
            }
        }
        
        /// <summary>
        /// Looks up a resource 'ImageRes'.
        /// </summary>
        public static System.Drawing.Bitmap ImageRes {
            get {
                return ((System.Drawing.Bitmap)(ResourceManager.GetObject(ResourceNames.ImageRes, _resourceCulture)));
            }
        }
        
        /// <summary>
        /// Looks up a localized string similar to 'Hello from a
        ///multiline'.
        /// </summary>
        public static string MultiLineRes {
            get {
                return ResourceManager.GetString(ResourceNames.MultiLineRes, _resourceCulture);
            }
        }
        
        /// <summary>
        /// Looks up a resource 'PngRes'.
        /// </summary>
        public static System.Drawing.Bitmap PngRes {
            get {
                return ((System.Drawing.Bitmap)(ResourceManager.GetObject(ResourceNames.PngRes, _resourceCulture)));
            }
        }
        
        /// <summary>
        /// Looks up a localized string similar to 'Hello {0}'.
        /// </summary>
        public static string StringRes {
            get {
                return ResourceManager.GetString(ResourceNames.StringRes, _resourceCulture);
            }
        }
        
        /// <summary>
        /// Looks up a localized string similar to 'Comment in text file
        ///second line'.
        /// </summary>
        public static string TextFileRes {
            get {
                return ResourceManager.GetString(ResourceNames.TextFileRes, _resourceCulture);
            }
        }
        
        /// <summary>
        /// Looks up a resource 'Word1'.
        /// </summary>
        public static byte[] Word1 {
            get {
                return ((byte[])(ResourceManager.GetObject(ResourceNames.Word1, _resourceCulture)));
            }
        }
        
        /// <summary>
        /// Formats a localized string similar to 'Hello {0}'.
        /// </summary>
        /// <param name="arg0">An object (0) to format.</param>
        /// <returns>A copy of format string in which the format items have been replaced by the String equivalent of the corresponding instances of Object in arguments.</returns>
        public static string StringResFormat(object arg0) {
            return string.Format(_resourceCulture, StringRes, arg0);
        }
        
        /// <summary>
        /// Lists all the resource names as constant string fields.
        /// </summary>
        public class ResourceNames {
            
            /// <summary>
            /// Stores the resource name 'AudioRes'.
            /// </summary>
            public const string AudioRes = "AudioRes";
            
            /// <summary>
            /// Stores the resource name 'IconRes'.
            /// </summary>
            public const string IconRes = "IconRes";
            
            /// <summary>
            /// Stores the resource name 'ImageRes'.
            /// </summary>
            public const string ImageRes = "ImageRes";
            
            /// <summary>
            /// Stores the resource name 'MultiLineRes'.
            /// </summary>
            public const string MultiLineRes = "MultiLineRes";
            
            /// <summary>
            /// Stores the resource name 'PngRes'.
            /// </summary>
            public const string PngRes = "PngRes";
            
            /// <summary>
            /// Stores the resource name 'StringRes'.
            /// </summary>
            public const string StringRes = "StringRes";
            
            /// <summary>
            /// Stores the resource name 'TextFileRes'.
            /// </summary>
            public const string TextFileRes = "TextFileRes";
            
            /// <summary>
            /// Stores the resource name 'Word1'.
            /// </summary>
            public const string Word1 = "Word1";
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect
New Zealand New Zealand
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions