Show / Hide Table of Contents

Interface IPropertyConverter<T>

The property converter interface

Namespace:FubarDev.WebDavServer.Props.Converters
Assembly:FubarDev.WebDavServer.dll
Syntax
public interface IPropertyConverter<T>
Type Parameters
Name Description
T

The type to convert to/from an XElement

Methods

| Improve this Doc View Source

FromElement(XElement)

Convert to the type T from a given element

Declaration
[NotNull]
T FromElement([NotNull] XElement element)
Parameters
Type Name Description
XElement element

The XElement to extract the value from

Returns
Type Description
T

The value extracted from the element

| Improve this Doc View Source

IsValidValue(T)

Determines whether the value is valid

Declaration
bool IsValidValue([CanBeNull] T value)
Parameters
Type Name Description
T value

The value to validate

Returns
Type Description
Boolean

true when the value is valid

| Improve this Doc View Source

ToElement(XName, T)

Covert from a given value to an XElement

Declaration
[NotNull]
XElement ToElement(XName name, [NotNull] T value)
Parameters
Type Name Description
XName name

The name of the XElement to be created

T value

The value to be converted to an XElement

Returns
Type Description
XElement

The created XElement

  • Improve this Doc
  • View Source
Back to top Copyright © 2016-2017 Fubar Development Junker
Generated by DocFX