C# Class Vestris.ResourceLib.ResourceId

A resource Id. There're two types of resource Ids, reserved integer numbers (eg. RT_ICON) and custom string names (eg. "CUSTOM").
Show file Open project: dblock/resourcelib Class Usage Examples

Public Methods

Method Description
Equals ( object obj ) : bool

Compares two resource Ids by value.

GetHashCode ( ) : int

Resource Id hash code. Resource Ids of the same type have the same hash code.

IsIntResource ( ) : bool

Returns true if the resource is an integer resource.

ResourceId ( IntPtr value ) : System

A resource identifier.

ResourceId ( Kernel32 value ) : System

A well-known resource-type identifier.

ResourceId ( string value ) : System

A custom resource identifier.

ResourceId ( uint value ) : System

A resource identifier.

ToString ( ) : string

String representation of the resource Id.

Private Methods

Method Description
IsIntResource ( IntPtr value ) : bool

Returns true if the resource is an integer resource.

Method Details

Equals() public method

Compares two resource Ids by value.
public Equals ( object obj ) : bool
obj object Resource Id.
return bool

GetHashCode() public method

Resource Id hash code. Resource Ids of the same type have the same hash code.
public GetHashCode ( ) : int
return int

IsIntResource() public method

Returns true if the resource is an integer resource.
public IsIntResource ( ) : bool
return bool

ResourceId() public method

A resource identifier.
public ResourceId ( IntPtr value ) : System
value System.IntPtr A integer or string resource id.
return System

ResourceId() public method

A well-known resource-type identifier.
public ResourceId ( Kernel32 value ) : System
value Kernel32 A well known resource type.
return System

ResourceId() public method

A custom resource identifier.
public ResourceId ( string value ) : System
value string
return System

ResourceId() public method

A resource identifier.
public ResourceId ( uint value ) : System
value uint A integer resource id.
return System

ToString() public method

String representation of the resource Id.
public ToString ( ) : string
return string