C# Class ColladaXna.Base.AddressExtensions

Extensions for classes that implement IAddress
显示文件 Open project: Bunkerbewohner/ColladaXna

Public Methods

Method Description
Equals ( this address, IAddress other ) : bool

Determines if two addresses are equal

GetAddressPart ( this address, string name ) : string

Returns a part of the address as specified by given name: "name" returns the "name" attribute "idref" or "id" returns the "id" attribtue "sidref" or "sid" returns the "sid" attribute

Method Details

Equals() public static method

Determines if two addresses are equal
public static Equals ( this address, IAddress other ) : bool
address this An address
other IAddress Another address
return bool

GetAddressPart() public static method

Returns a part of the address as specified by given name: "name" returns the "name" attribute "idref" or "id" returns the "id" attribtue "sidref" or "sid" returns the "sid" attribute
Does only accept above mentioned names
public static GetAddressPart ( this address, string name ) : string
address this
name string
return string