In This Article

CSharpContextFactory Class

Creates C# language IDotNetContext objects for a TextSnapshotOffset.

public class CSharpContextFactory : DotNetContextFactoryBase
Inheritance:
object DotNetContextFactoryBase object

Constructors

CSharpContextFactory()

Initializes an instance of the class.

public CSharpContextFactory()

Methods

CreateContext(TextSnapshotOffset, DotNetContextKind)

Creates an IDotNetContext for the specified TextSnapshotOffset.

public override IDotNetContext CreateContext(TextSnapshotOffset snapshotOffset, DotNetContextKind kind)
Parameter Type Description
snapshotOffset TextSnapshotOffset

The TextSnapshotOffset for which to create a context.

kind DotNetContextKind

A DotNetContextKind indicating the kind of context.

Returns

IDotNetContext:

The IDotNetContext that was created.

Inherited Members