Table of Contents

Class GlobalUsingsInstance

Namespace
SunamoDevCode
Assembly
SunamoDevCode.dll

Manages global using declarations in a C# file, supporting adding, removing, and saving.

public class GlobalUsingsInstance
Inheritance
GlobalUsingsInstance
Inherited Members
Extension Methods

Methods

AddNewGlobalUsing(string)

Adds a new global using namespace if it is not already present.

public void AddNewGlobalUsing(string _using)

Parameters

_using string

Namespace to add as global using.

Init(string)

Initializes the instance by reading and parsing the global usings file at the given path.

public Task Init(string path)

Parameters

path string

Path to the global usings file.

Returns

Task

RemoveGlobalUsingsStartingWith(string)

EN: Remove all global usings that start with the specified prefix (case insensitive) CZ: Odstraň všechny global usings které začínají zadaným prefixem (case insensitive)

public void RemoveGlobalUsingsStartingWith(string prefix)

Parameters

prefix string

Prefix to match (e.g., "MyNamespace.ExcludedFolder")

Save()

Saves the current global usings and symbols back to the file.

public Task Save()

Returns

Task