Show / Hide Table of Contents

Struct ApiLink<TLinkedResource>

A link to an API resource of a speicifc type.

Implements
IApiLink
System.Xml.Serialization.IXmlSerializable
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: EC.ProductsAndPricing.ServiceContract
Assembly: EC.ProductsAndPricing.ServiceContract.dll
Syntax
public struct ApiLink<TLinkedResource> : IApiLink, IXmlSerializable
Type Parameters
Name Description
TLinkedResource

The type of the resource returned by the api at this address

Constructors

View Source

ApiLink(Uri)

Create a api link.

Declaration
public ApiLink(Uri url)
Parameters
Type Name Description
System.Uri url

The linked to resource.

Properties

View Source

IsEmpty

Declaration
public bool IsEmpty { get; }
Property Type: System.Boolean
Implements
IApiLink.IsEmpty
View Source

LinkedResource

Declaration
public Type LinkedResource { get; }
Property Type: System.Type
Implements
IApiLink.LinkedResource
View Source

Url

Declaration
public Uri Url { get; }
Property Type: System.Uri
Implements
IApiLink.Url

Methods

View Source

Parse(String)

Parse a url string.

Declaration
public static ApiLink<TLinkedResource> Parse(string value)
Parameters
Type Name Description
System.String value

the url string to parse

Returns
Type Description
ApiLink<TLinkedResource>

The parsed value

View Source

ToString()

Format the api link as a url.

Declaration
public override string ToString()
Returns
Type Description
System.String

The url as a string.

Overrides
System.ValueType.ToString()

Explicit Interface Implementations

View Source

IXmlSerializable.GetSchema()

Declaration
XmlSchema IXmlSerializable.GetSchema()
Returns
Type Description
System.Xml.Schema.XmlSchema
Implements
System.Xml.Serialization.IXmlSerializable.GetSchema()
View Source

IXmlSerializable.ReadXml(XmlReader)

Declaration
void IXmlSerializable.ReadXml(XmlReader reader)
Parameters
Type Name Description
System.Xml.XmlReader reader
Implements
System.Xml.Serialization.IXmlSerializable.ReadXml(System.Xml.XmlReader)
View Source

IXmlSerializable.WriteXml(XmlWriter)

Declaration
void IXmlSerializable.WriteXml(XmlWriter writer)
Parameters
Type Name Description
System.Xml.XmlWriter writer
Implements
System.Xml.Serialization.IXmlSerializable.WriteXml(System.Xml.XmlWriter)
  • View Source
Back to top Copyright © 2017 EC English