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
PathstringRelative to the scaffold's folder, forward slashes.
Kindstringspec,schema,stub,collection,testorreadme.LanguagestringFor the editor:
yaml,protobuf,csharp,xml,json,markdown.ContentstringThe file.
Properties
Content
The file.
[JsonPropertyName("content")]
public string Content { get; init; }
Property Value
Kind
spec, schema, stub, collection, test or readme.
[JsonPropertyName("kind")]
public string Kind { get; init; }
Property Value
Language
For the editor: yaml, protobuf, csharp, xml, json, markdown.
[JsonPropertyName("language")]
public string Language { get; init; }
Property Value
Path
Relative to the scaffold's folder, forward slashes.
[JsonPropertyName("path")]
public string Path { get; init; }
Property Value
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
Equals(ScaffoldFile?)
public bool Equals(ScaffoldFile? other)
Parameters
otherScaffoldFile
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(ScaffoldFile?, ScaffoldFile?)
public static bool operator ==(ScaffoldFile? left, ScaffoldFile? right)
Parameters
leftScaffoldFilerightScaffoldFile
Returns
operator !=(ScaffoldFile?, ScaffoldFile?)
public static bool operator !=(ScaffoldFile? left, ScaffoldFile? right)
Parameters
leftScaffoldFilerightScaffoldFile