internal static bool TryParseAssemblyName(string/*!*/ path, out string typeName, out string assemblyName) {
Match match = _AssemblyNameRegex.Match(path);
if (match.Success) {
Group typeGroup = match.Groups["type"];
Group assemblyGroup = match.Groups["assembly"];
Debug.Assert(assemblyGroup.Success);
typeName = typeGroup.Success ? typeGroup.Value : null;
assemblyName = assemblyGroup.Value;
return true;
}
if (path.Trim() == "mscorlib") {
typeName = null;
assemblyName = path;
return true;
}
typeName = null;
assemblyName = null;
return false;
}