AsmResolver.Net.Signatures.TypeNameParser.CreateTypeReference C# (CSharp) Метод

CreateTypeReference() приватный статический Метод

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;
        }