public static Assembly ReflectionLoadGacAssembly(string partialName, bool reflectionOnly)
        {
            if (reflectionOnly)
            {
                GacAssemblyName name = GacInterop.FindBestMatchingAssemblyName(partialName);
                if (name == null)
                {
                    return(null);
                }
                return(Assembly.ReflectionOnlyLoad(name.FullName));
            }
            else
            {
                                #pragma warning disable 618
                return(Assembly.LoadWithPartialName(partialName));

                                #pragma warning restore 618
            }
        }