In This Article

CodeSnippetFile Class

Represents an object that can list header information about an ICodeSnippet and can provide the full snippet on demand.

public class CodeSnippetFile : CodeSnippetMetadataBase, ICodeSnippetMetadata
Inheritance:
object CodeSnippetMetadataBase object
Implements:
ICodeSnippetMetadata

Constructors

CodeSnippetFile(string, ICodeSnippet)

Initializes an instance of the class.

public CodeSnippetFile(string path, ICodeSnippet codeSnippet)
Parameter Type Description
path string

The path to the code snippet file.

codeSnippet ICodeSnippet

The ICodeSnippet from which to initialize the provider.

Properties

Path

The path to the code snippet file.

public string Path { get; }

Property Value

string

Methods

GetCodeSnippet()

Returns the full associated ICodeSnippet.

public override ICodeSnippet? GetCodeSnippet()

Returns

ICodeSnippet

Inherited Members

Extension Methods