Class
Resource

Represents basic IResource implementation.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.ScheduleView.dll

Syntax:

cs-api-definition
public class Resource : IResource, IEquatable<IResource>

Inheritance: objectResource

Implements: IEquatable<IResource>IResource

Constructors

Resource()

Initializes a new instance of the Resource class.

Declaration

cs-api-definition
public Resource()

Resource(string)

Initializes a new instance of the Resource class.

Declaration

cs-api-definition
public Resource(string name)

Parameters

name

string

The name.

Resource(string, string)

Initializes a new instance of the Resource class.

Declaration

cs-api-definition
public Resource(string name, string type)

Parameters

name

string

The name.

type

string

The type.

Properties

DisplayName

Gets or sets the display name.

Declaration

cs-api-definition
public string DisplayName { get; set; }

Property Value

string

The display name.

Implements IResource.DisplayName

ResourceName

Gets or sets the string value representing the name of the IResource object.

Declaration

cs-api-definition
public string ResourceName { get; set; }

Property Value

string

Implements IResource.ResourceName

ResourceType

Gets or sets the string value representing the type of the IResource object.

Declaration

cs-api-definition
public string ResourceType { get; set; }

Property Value

string

Implements IResource.ResourceType

Methods

Equals(IResource)

Determines whether the specified IResource is equal to this instance.

Declaration

cs-api-definition
public bool Equals(IResource other)

Parameters

other

IResource

The IResource to compare with this instance.

Returns

bool

true if the specified IResource is equal to this instance; otherwise, false.

Implements IEquatable<IResource>.Equals(IResource)

Equals(object)

Determines whether the specified object is equal to this instance.

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

The object to compare with this instance.

Returns

bool

true if the specified object is equal to this instance; otherwise, false.

Exceptions

NullReferenceException

The obj parameter is null.

Overrides object.Equals(object)

GetHashCode()

Returns a hash code for this instance.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

Overrides object.GetHashCode()

ToString()

Returns a string that represents this instance.

Declaration

cs-api-definition
public override string ToString()

Returns

string

A string that represents this instance.

Overrides object.ToString()