CK.Monitoring.GrandOutputConfiguration.FindConfigurationType C# (CSharp) Method

FindConfigurationType() static private method

static private FindConfigurationType ( string type ) : Type
type string
return System.Type
        static Type FindConfigurationType( string type )
        {
            Type t = SimpleTypeFinder.WeakResolver( type, false );
            if( t == null )
            {
                string fullTypeName, assemblyFullName;
                if( !SimpleTypeFinder.SplitAssemblyQualifiedName( type, out fullTypeName, out assemblyFullName ) )
                {
                    fullTypeName = type;
                    assemblyFullName = "CK.Monitoring";
                }
                if( !fullTypeName.EndsWith( "Configuration" ) ) fullTypeName += "Configuration";
                t = SimpleTypeFinder.WeakResolver( fullTypeName + ", " + assemblyFullName, false );
                if( t == null )
                {
                    t = SimpleTypeFinder.WeakResolver( "CK.Monitoring.GrandOutputHandlers." + fullTypeName + ", " + assemblyFullName, true );
                }
            }
            return t;
        }
    }