Skip to content

Markdown2Pdf.Services.PropertyService

GitHub Action edited this page May 12, 2024 · 1 revision

Class PropertyService

Namespace: Markdown2Pdf.Services
Assembly: Markdown2Pdf.dll

Helper service for properties.

public static class PropertyService

Inheritance

objectPropertyService

Inherited Members

object.Equals(object), object.Equals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object, object), object.ToString()

Methods

TryGetPropertyValue<T>(string, out T)

Gets a static property from a type by name.

public static bool TryGetPropertyValue<T>(string propertyName, out T propertyValue)

Parameters

propertyName string

The name of the property to get.

propertyValue T

The property value.

Returns

bool

Wether the conversion was successful.

Type Parameters

T

Type of the property as well as the type that contains it.

Clone this wiki locally