Table of Contents

Class ResourceDefaultMarker

Namespace
Hi.Common
Assembly
HiGeom.dll

File-name convention that marks a shipped resource item as a system-owned default: a file carries the token before its final extension (AlTiBN.default.CoatingMaterial), a folder-shaped resource carries it as a folder-name suffix (MachineTool/Table-B1.default/) with the files inside left untouched.

public static class ResourceDefaultMarker
Inheritance
ResourceDefaultMarker
Inherited Members

Remarks

Marked means system territory — the resource seeder may overwrite the item on version updates and delete marked items that are no longer shipped. Unmarked items belong to the user and are never touched. The marker is a declaration, not an enforcement: user edits to a marked file survive until the next shipped-version change overwrites them.

Fields

Token

The marker token. Files embed it before the final extension; folders end with it.

public const string Token = ".default"

Field Value

string

Methods

IsMarkedFileName(string)

Whether fileName carries the marker (contains .default.).

public static bool IsMarkedFileName(string fileName)

Parameters

fileName string

File name without directory.

Returns

bool

IsMarkedFolderName(string)

Whether folderName carries the marker (ends with .default).

public static bool IsMarkedFolderName(string folderName)

Parameters

folderName string

Folder name without directory.

Returns

bool

StripFileName(string)

Removes the marker from a marked file name (X.default.mpX.mp); an unmarked name passes through.

public static string StripFileName(string fileName)

Parameters

fileName string

File name without directory.

Returns

string

StripFolderName(string)

Removes the marker from a marked folder name (CT-350.defaultCT-350); an unmarked name passes through.

public static string StripFolderName(string folderName)

Parameters

folderName string

Folder name without directory.

Returns

string