private static CreateTypeReference ( IResolutionScope scope, string fullName ) : TypeReference | ||
scope | IResolutionScope | |
fullName | string | |
리턴 | TypeReference |
private static TypeReference CreateTypeReference(IResolutionScope scope, string fullName)
{
var dotIndex = fullName.LastIndexOf('.');
var type = dotIndex == -1
? new TypeReference(scope, string.Empty, fullName)
: new TypeReference(scope, fullName.Remove(dotIndex), fullName.Substring(dotIndex + 1));
if (scope != null)
type.Header = scope.Header;
return type;
}