Class ResourceItem
Represent information about a string resource item in the system.
Inheritance
Implements
Namespace: EPiServer.Framework.Localization
Assembly: EPiServer.Framework.dll
Version: 12.0.3Syntax
public sealed class ResourceItem : ValueType, IEquatable<ResourceItem>
Constructors
ResourceItem(String, String, CultureInfo)
Initializes a new instance of the Resource
Declaration
public ResourceItem(string key, string value, CultureInfo sourceCulture)
Parameters
Type | Name | Description |
---|---|---|
System. |
key | The resource key. |
System. |
value | The resource value. |
System. |
sourceCulture | The culture that the resource is specified in. |
Properties
Key
Gets the resource key.
Declaration
public string Key { get; }
Property Value
Type | Description |
---|---|
System. |
The resource key. |
SourceCulture
Gets the culture that the resource was specified in.
Declaration
public CultureInfo SourceCulture { get; }
Property Value
Type | Description |
---|---|
System. |
The source culture. |
Value
Gets the resource value.
Declaration
public string Value { get; }
Property Value
Type | Description |
---|---|
System. |
The resource value. |
Methods
Equals(ResourceItem)
Determines whether the specified Resource
Declaration
public bool Equals(ResourceItem other)
Parameters
Type | Name | Description |
---|---|---|
Resource |
other | The Resource |
Returns
Type | Description |
---|---|
System. |
|
Equals(Object)
Determines whether the specified System.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System. |
obj | The System. |
Returns
Type | Description |
---|---|
System. |
|
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System. |
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |
ToString()
Returns a System.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System. |
A System. |
Operators
Equality(ResourceItem, ResourceItem)
Implements the operator ==.
Declaration
public static bool operator ==(ResourceItem item1, ResourceItem item2)
Parameters
Type | Name | Description |
---|---|---|
Resource |
item1 | The item on the left hand side of the operator. |
Resource |
item2 | The item on the right hand side of the operator. |
Returns
Type | Description |
---|---|
System. |
|
Inequality(ResourceItem, ResourceItem)
Implements the operator !=.
Declaration
public static bool operator !=(ResourceItem item1, ResourceItem item2)
Parameters
Type | Name | Description |
---|---|---|
Resource |
item1 | The item on the left hand side of the operator. |
Resource |
item2 | The item on the right hand side of the operator. |
Returns
Type | Description |
---|---|
System. |
|