New to Telerik UI for WPFStart a free 30-day trial

Represents basic IResource implementation.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.ScheduleView.dll

Syntax:

C#
public class Resource : IResource, IEquatable<IResource>

Inheritance: objectResource

Implements: IEquatable<IResource>IResource

Constructors

Initializes a new instance of the Resource class.

C#
public Resource()

Initializes a new instance of the Resource class.

C#
public Resource(string name, string type)
Parameters:namestring

The name.

typestring

The type.

Initializes a new instance of the Resource class.

C#
public Resource(string name)
Parameters:namestring

The name.

Properties

Gets or sets the display name.

C#
public string DisplayName { get; set; }
Property Value:

The display name.

Implements: IResource.DisplayName

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

C#
public string ResourceName { get; set; }

Implements: IResource.ResourceName

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

C#
public string ResourceType { get; set; }

Implements: IResource.ResourceType

Methods

Determines whether the specified IResource is equal to this instance.

C#
public bool Equals(IResource other)
Parameters:otherIResource

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)

Determines whether the specified object is equal to this instance.

C#
public override bool Equals(object obj)
Parameters:objobject

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)

Returns a hash code for this instance.

C#
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()

Returns a string that represents this instance.

C#
public override string ToString()
Returns:

string

A string that represents this instance.

Overrides: object.ToString()