AsmResolver.Net.Signatures.TypeNameParser.CreateTypeReference C# (CSharp) Method

CreateTypeReference() private static method

private static CreateTypeReference ( IResolutionScope scope, string fullName ) : TypeReference
scope IResolutionScope
fullName string
return 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;
        }