Beispiel #1
0
        ///<summary>
        /// This method combines the assembly name and class name to
        /// create a string that represents the Class Type.
        ///</summary>
        ///<param name="assemblyName">The class's assembly name</param>
        ///<param name="className">The class's name</param>
        ///<returns>A string representing the Class Type.</returns>
        ///<param name="includeNamespace">Should the TypeId include the namespace or not</param>
        private static string GetTypeId(string assemblyName, string className, bool includeNamespace)
        {
            string namespaceString;

            className = StripOutNameSpace(className, out namespaceString);
            if (includeNamespace && !string.IsNullOrEmpty(namespaceString))
            {
                namespaceString = " Namespace:" + namespaceString;
            }
            else
            {
                namespaceString = "";
            }
            assemblyName = TypeLoader.CleanUpAssemblyName(assemblyName);
            string id = "Assembly:" + assemblyName + namespaceString + " _className:" + className;

            return(id.ToUpper());
        }