Table of Contents

Class ABRoslyn

Namespace
SunamoRoslyn._public
Assembly
SunamoRoslyn.dll

Represents a name-value pair for Roslyn code analysis.

public class ABRoslyn
Inheritance
ABRoslyn
Inherited Members
Extension Methods

Constructors

ABRoslyn(string, object)

Initializes a new instance of the ABRoslyn class.

public ABRoslyn(string name, object value)

Parameters

name string

The name component.

value object

The value component.

Properties

A

The name component of the pair.

public string A { get; set; }

Property Value

string

B

The value component of the pair.

public object B { get; set; }

Property Value

object

Methods

Get(string, object)

Creates a new ABRoslyn instance from a string name and value.

public static ABRoslyn Get(string name, object value)

Parameters

name string

The name component.

value object

The value component.

Returns

ABRoslyn

A new ABRoslyn instance.

Get(Type, object)

Creates a new ABRoslyn instance from a type and value.

public static ABRoslyn Get(Type name, object value)

Parameters

name Type

The type whose full name will be used as the name component.

value object

The value component.

Returns

ABRoslyn

A new ABRoslyn instance.

ToString()

Returns a string representation of this name-value pair.

public override string ToString()

Returns

string

A string in the format "Name:Value".