Search Results for

    Show / Hide Table of Contents

    Class SourceFileResolver

    Inheritance
    object
    SourceReferenceResolver
    SourceFileResolver
    Implements
    IEquatable<SourceFileResolver>
    Inherited Members
    SourceReferenceResolver.ReadText(string)
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    Namespace: Microsoft.CodeAnalysis
    Assembly: Microsoft.CodeAnalysis.dll
    Syntax
    public class SourceFileResolver : SourceReferenceResolver, IEquatable<SourceFileResolver>

    Constructors

    SourceFileResolver(IEnumerable<string>, string?)

    Declaration
    public SourceFileResolver(IEnumerable<string> searchPaths, string? baseDirectory)
    Parameters
    Type Name Description
    IEnumerable<string> searchPaths
    string baseDirectory

    SourceFileResolver(ImmutableArray<string>, string?)

    Declaration
    public SourceFileResolver(ImmutableArray<string> searchPaths, string? baseDirectory)
    Parameters
    Type Name Description
    ImmutableArray<string> searchPaths
    string baseDirectory

    SourceFileResolver(ImmutableArray<string>, string?, ImmutableArray<KeyValuePair<string, string>>)

    Declaration
    public SourceFileResolver(ImmutableArray<string> searchPaths, string? baseDirectory, ImmutableArray<KeyValuePair<string, string>> pathMap)
    Parameters
    Type Name Description
    ImmutableArray<string> searchPaths
    string baseDirectory
    ImmutableArray<KeyValuePair<string, string>> pathMap

    Properties

    BaseDirectory

    Declaration
    public string? BaseDirectory { get; }
    Property Value
    Type Description
    string

    Default

    Declaration
    public static SourceFileResolver Default { get; }
    Property Value
    Type Description
    SourceFileResolver

    PathMap

    Declaration
    public ImmutableArray<KeyValuePair<string, string>> PathMap { get; }
    Property Value
    Type Description
    ImmutableArray<KeyValuePair<string, string>>

    SearchPaths

    Declaration
    public ImmutableArray<string> SearchPaths { get; }
    Property Value
    Type Description
    ImmutableArray<string>

    Methods

    Equals(SourceFileResolver?)

    Declaration
    public bool Equals(SourceFileResolver? other)
    Parameters
    Type Name Description
    SourceFileResolver other
    Returns
    Type Description
    bool

    Equals(object?)

    Declaration
    public override bool Equals(object? obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Overrides
    SourceReferenceResolver.Equals(object?)

    FileExists(string?)

    Declaration
    protected virtual bool FileExists(string? resolvedPath)
    Parameters
    Type Name Description
    string resolvedPath
    Returns
    Type Description
    bool

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    SourceReferenceResolver.GetHashCode()

    NormalizePath(string, string?)

    Declaration
    public override string? NormalizePath(string path, string? baseFilePath)
    Parameters
    Type Name Description
    string path
    string baseFilePath
    Returns
    Type Description
    string
    Overrides
    SourceReferenceResolver.NormalizePath(string, string?)

    OpenRead(string)

    Declaration
    public override Stream OpenRead(string resolvedPath)
    Parameters
    Type Name Description
    string resolvedPath
    Returns
    Type Description
    Stream
    Overrides
    SourceReferenceResolver.OpenRead(string)

    ResolveReference(string, string?)

    Declaration
    public override string? ResolveReference(string path, string? baseFilePath)
    Parameters
    Type Name Description
    string path
    string baseFilePath
    Returns
    Type Description
    string
    Overrides
    SourceReferenceResolver.ResolveReference(string, string?)

    Implements

    IEquatable<T>
    In this article
    Back to top Generated by DocFX | Copyright (c) 2018- The NUnit Project - Licensed under CC BY-NC-SA 4.0