tags:

views:

39

answers:

1

C# CODE :

[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
    internal static global::System.Resources.ResourceManager ResourceManager {
        get {
            if (object.ReferenceEquals(resourceMan, null)) {
                global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("splashscreen.Properties.Resources", typeof(Resources).Assembly);
                resourceMan = temp;
            }
            return resourceMan;
        }
    }


    internal static ResourceManager : System.Resources.ResourceManager {
        get {
            when (object.ReferenceEquals(resourceMan, null)) {
                mutable temp : System.Resources.ResourceManager = System.Resources.ResourceManager("splashscreen.Properties.Resources", typeof(Resources).Assembly);
                resourceMan = temp;
            }
            resourceMan
        }
    }

is it enough ?

+1  A: 

I would write it like this:

using System.ComponentModel;
using System;

// ...

[ EditorBrowsableAttribute(EditorBrowsableState.Advanced) ] 
internal static ResourceManager : Resources.ResourceManager 
{ 
    get
    { 
        when (object.ReferenceEquals(resourceMan, null))
        {
            resourceMan = Resources.ResourceManager
                ( "splashscreen.Properties.Resources"
                , typeof(Resources).Assembly
                ); 
        }
        resourceMan; 
    } 
}
Don Reba
Thank you again :)
nCdy