Show / Hide Table of Contents

Class MetadataItem

Represents a piece of metadata which was extracted for work item filing.

Inheritance
object
MetadataItem
Implements
IEquatable<MetadataItem>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
Namespace: CrashCABN.Metadata
Assembly: CrashCABN.Metadata.Abstractions.dll
Syntax
public sealed record MetadataItem : IEquatable<MetadataItem>

Constructors

View Source

MetadataItem(string, AppliesToEnum)

Initializes a new instance of the MetadataItem class.

Declaration
public MetadataItem(string value, AppliesToEnum appliesTo)
Parameters
Type Name Description
string value
AppliesToEnum appliesTo
View Source

MetadataItem(string?, string?, string?)

Initializes a new instance of the MetadataItem class.

Declaration
[JsonConstructor]
public MetadataItem(string? both = null, string? bugs = null, string? crashes = null)
Parameters
Type Name Description
string both
string bugs
string crashes

Properties

View Source

AppliesTo

Declaration
[JsonIgnore]
public string AppliesTo { get; }
Property Value
Type Description
string
View Source

Both

Declaration
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Both { get; }
Property Value
Type Description
string
View Source

Bugs

Declaration
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Bugs { get; }
Property Value
Type Description
string
View Source

Crashes

Declaration
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Crashes { get; }
Property Value
Type Description
string

Methods

View Source

Combine(MetadataItem)

Declaration
public MetadataItem Combine(MetadataItem other)
Parameters
Type Name Description
MetadataItem other
Returns
Type Description
MetadataItem
View Source

ToString()

Returns a string that represents the current object.

Declaration
public override string ToString()
Returns
Type Description
string

A string that represents the current object.

Overrides
object.ToString()
View Source

Value(AppliesToEnum)

Declaration
public string? Value(AppliesToEnum appliesTo)
Parameters
Type Name Description
AppliesToEnum appliesTo
Returns
Type Description
string

Implements

IEquatable<T>
  • View Source
In this article
Back to top Generated by DocFX