Class ScaffoldFile

Namespace
Kuestenlogik.Bowire.Scaffold
Assembly
Kuestenlogik.Bowire.Scaffold.dll

One generated file.

public sealed record ScaffoldFile : IEquatable<ScaffoldFile>
Inheritance
ScaffoldFile
Implements
Inherited Members

Constructors

ScaffoldFile(string, string, string, string)

One generated file.

public ScaffoldFile(string Path, string Kind, string Language, string Content)

Parameters

Path string

Relative to the scaffold's folder, forward slashes.

Kind string

spec, schema, stub, collection, test or readme.

Language string

For the editor: yaml, protobuf, csharp, xml, json, markdown.

Content string

The file.

Properties

Content

The file.

[JsonPropertyName("content")]
public string Content { get; init; }

Property Value

string

Kind

spec, schema, stub, collection, test or readme.

[JsonPropertyName("kind")]
public string Kind { get; init; }

Property Value

string

Language

For the editor: yaml, protobuf, csharp, xml, json, markdown.

[JsonPropertyName("language")]
public string Language { get; init; }

Property Value

string

Path

Relative to the scaffold's folder, forward slashes.

[JsonPropertyName("path")]
public string Path { get; init; }

Property Value

string

Methods

Deconstruct(out string, out string, out string, out string)

public void Deconstruct(out string Path, out string Kind, out string Language, out string Content)

Parameters

Path string
Kind string
Language string
Content string

Equals(ScaffoldFile?)

public bool Equals(ScaffoldFile? other)

Parameters

other ScaffoldFile

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(ScaffoldFile?, ScaffoldFile?)

public static bool operator ==(ScaffoldFile? left, ScaffoldFile? right)

Parameters

left ScaffoldFile
right ScaffoldFile

Returns

bool

operator !=(ScaffoldFile?, ScaffoldFile?)

public static bool operator !=(ScaffoldFile? left, ScaffoldFile? right)

Parameters

left ScaffoldFile
right ScaffoldFile

Returns

bool