Class ProtoTraceItemKeys

Namespace
ProtoTest.Core
Assembly
ProtoTest.Core.dll

Builds the identity segments ProtoTrace uses for tracked values. A tracked value is the item kind value with the id {type}:{identity}, where {type} is the CLR type name in snake_case: an InvoiceLine becomes invoice_line:42. An application that emits its own identity attribute (invoice_line.number) uses the same segment, so both sides describe one value.

public static class ProtoTraceItemKeys
Inheritance
ProtoTraceItemKeys
Inherited Members

Methods

TypeSegment(string)

Returns the snake_case segment for a CLR type name, e.g. InvoiceLine to invoice_line.

public static string TypeSegment(string typeName)

Parameters

typeName string

Returns

string

TypeSegment(Type)

Returns the snake_case segment for a CLR type, e.g. InvoiceLine to invoice_line.

public static string TypeSegment(Type type)

Parameters

type Type

Returns

string