3
namespace ServiceStack.Common.Support
5
internal class AssemblyTypeDefinition
7
private const char TypeDefinitionSeperator = ',';
8
private const int TypeNameIndex = 0;
9
private const int AssemblyNameIndex = 1;
11
public AssemblyTypeDefinition(string typeDefinition)
13
if (string.IsNullOrEmpty(typeDefinition))
15
throw new ArgumentNullException();
17
var parts = typeDefinition.Split(TypeDefinitionSeperator);
18
TypeName = parts[TypeNameIndex].Trim();
19
AssemblyName = (parts.Length > AssemblyNameIndex) ? parts[AssemblyNameIndex].Trim() : null;
22
public string TypeName { get; set; }
24
public string AssemblyName { get; set; }
b'\\ No newline at end of file'