SRExtensionBase<TName> Class
An abstract base class for a markup extension that loads an assembly's string resource.
public abstract class SRExtensionBase<TName>
- Type Parameters:
-
TName
-
- Inheritance:
- object object
- Derived:
- SRExtension SRExtension SRExtension SRExtension
Constructors
SRExtensionBase()
Initializes an instance of the class.
protected SRExtensionBase()
SRExtensionBase(TName)
Initializes an instance of the class with a string resource name.
protected SRExtensionBase(TName name)
Parameter | Type | Description |
---|---|---|
name | TName | The name of the string resource. |
Properties
Name
The name of the string resource.
public abstract TName Name { get; set; }
Property Value
- TName
Methods
ProvideValue()
Returns the string resource based on the supplied name.
public abstract string? ProvideValue()
Returns
- string:
The object value to set on the property where the extension is applied.
Inherited Members
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()