KGy SOFT

ResXFileRef Class

KGy SOFT Core Libraries Help
Represents a link to an external resource.
See the Remarks section for the differences compared to System.Resources.ResXFileRef class.
Inheritance Hierarchy

SystemObject
  KGySoft.ResourcesResXFileRef

Namespace:  KGySoft.Resources
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 5.0.0-rc.1
Syntax

[SerializableAttribute]
public sealed class ResXFileRef

The ResXFileRef type exposes the following members.

Constructors

  NameDescription
Public methodResXFileRef
Initializes a new instance of the ResXFileRef class that references the specified file.
Top
Properties

  NameDescription
Public propertyFileName
Gets the file name specified in the constructor.
Public propertyTextFileEncoding
Gets the encoding specified in the constructor.
Public propertyTypeName
Gets the type name specified in the constructor.
Top
Methods

  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberParse
Converts the string representation of a file reference to a ResXFileRef instance.
Public methodToString
Gets the text representation of the current ResXFileRef object.
(Overrides ObjectToString.)
Public methodStatic memberTryParse
Converts the string representation of a file reference to a ResXFileRef instance. A return value indicates whether the conversion succeeded.
Top
Extension Methods

  NameDescription
Public Extension MethodConvert(Type, CultureInfo)Overloaded.
Converts an Object specified in the obj parameter to the desired targetType.
See the Examples section of the generic ConvertTTarget(Object, CultureInfo) overload for an example.
(Defined by ObjectExtensions.)
Public Extension MethodCode exampleConvertTTarget(CultureInfo)Overloaded.
Converts an Object specified in the obj parameter to the desired TTarget.
(Defined by ObjectExtensions.)
Public Extension MethodIn (Defined by ObjectExtensions.)
Public Extension MethodTryConvert(Type, Object)Overloaded.
Tries to convert an Object specified in the obj parameter to the desired targetType.
(Defined by ObjectExtensions.)
Public Extension MethodTryConvert(Type, CultureInfo, Object)Overloaded.
Tries to convert an Object specified in the obj parameter to the desired targetType.
(Defined by ObjectExtensions.)
Public Extension MethodTryConvertTTarget(TTarget)Overloaded.
Tries to convert an Object specified in the obj parameter to the desired TTarget.
See the Examples section of the ConvertTTarget(Object, CultureInfo) method for a related example.
(Defined by ObjectExtensions.)
Public Extension MethodTryConvertTTarget(CultureInfo, TTarget)Overloaded.
Tries to convert an Object specified in the obj parameter to the desired TTarget.
See the Examples section of the ConvertTTarget(Object, CultureInfo) method for a related example.
(Defined by ObjectExtensions.)
Top
Remarks

Note Note
This class is similar to System.Resources.ResXFileRef in System.Windows.Forms.dll. See the Comparison with System.Resources.ResXFileRef section for the differences.

The ResXFileRef class is used to include references to files in an XML resource (.resx) file. A ResXFileRef object represents a link to an external resource in an XML resource (.resx) file. You can add a ResXFileRef object to a .resx file programmatically by one of the following options:

Comparison with System.Resources.ResXFileRef 

Note Note
The compatibility with System.Resources.ResXFileRef is provided without any reference to System.Windows.Forms.dll, where that type is located.
Note Note
When serialized in compatibility mode (see ResXResourceWriter.CompatibleFormat, ResXResourceSet.Save, ResXResourceManager.SaveResourceSet and ResXResourceManager.SaveAllResources), the result will be able to be parsed by the System.Resources.ResXFileRef type, too.

Incompatibility with System.Resources.ResXFileRef:

New features and improvements compared to System.Resources.ResXFileRef:

See Also

Reference