Show / Hide Table of Contents

Class SimpleConvertingProperty<T>

Simple converting property

Inheritance
Object
SimpleUntypedProperty
SimpleTypedProperty<T>
SimpleConvertingProperty<T>
GenericProperty<T>
Inherited Members
SimpleTypedProperty<T>.GetValueAsync(CancellationToken)
SimpleTypedProperty<T>.SetValueAsync(T, CancellationToken)
SimpleUntypedProperty.Name
SimpleUntypedProperty.Language
SimpleUntypedProperty.AlternativeNames
SimpleUntypedProperty.Cost
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace:FubarDev.WebDavServer.Props
Assembly:FubarDev.WebDavServer.dll
Syntax
public abstract class SimpleConvertingProperty<T> : SimpleTypedProperty<T>, ITypedWriteableProperty<T>, ITypedReadableProperty<T>, IUntypedWriteableProperty, IUntypedReadableProperty, IProperty
Type Parameters
Name Description
T

The type to be converted from or to

Constructors

| Improve this Doc View Source

SimpleConvertingProperty(XName, String, Int32, IPropertyConverter<T>, XName[])

Initializes a new instance of the SimpleConvertingProperty<T> class.

Declaration
protected SimpleConvertingProperty([NotNull] XName name, [CanBeNull] string language, int cost, [NotNull] IPropertyConverter<T> converter, params XName[] alternativeNames)
Parameters
Type Name Description
XName name

The property name

String language

The language for the property value

Int32 cost

The cost to get the properties value

IPropertyConverter<T> converter

The converter to copy the value to/from an XElement

XName[] alternativeNames

The alternative names

Properties

| Improve this Doc View Source

Converter

Gets the converter to be used to copy to/from an XElement

Declaration
[NotNull]
protected IPropertyConverter<T> Converter { get; }
Property Value
Type Description
IPropertyConverter<T>

Methods

| Improve this Doc View Source

GetXmlValueAsync(CancellationToken)

Gets the XElement for this property

Declaration
public override Task<XElement> GetXmlValueAsync(CancellationToken ct)
Parameters
Type Name Description
CancellationToken ct

The cancellation token

Returns
Type Description
Task<XElement>

The XElement for this property

Overrides
SimpleUntypedProperty.GetXmlValueAsync(CancellationToken)
| Improve this Doc View Source

SetXmlValueAsync(XElement, CancellationToken)

Sets the XElement for the property

Declaration
public override Task SetXmlValueAsync(XElement element, CancellationToken ct)
Parameters
Type Name Description
XElement element

The XElement to be set

CancellationToken ct

The cancellation token

Returns
Type Description
Task

The async task

Overrides
SimpleUntypedProperty.SetXmlValueAsync(XElement, CancellationToken)
  • Improve this Doc
  • View Source
Back to top Copyright © 2016-2017 Fubar Development Junker
Generated by DocFX