ResXFileRef Constructor
Initializes a new instance of the
ResXFileRef class that references the specified file.
Namespace: KGySoft.ResourcesAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
public ResXFileRef(
string fileName,
Type type,
Encoding? textFileEncoding = null
)
Public Sub New (
fileName As String,
type As Type,
Optional textFileEncoding As Encoding = Nothing
)
public:
ResXFileRef(
String^ fileName,
Type^ type,
Encoding^ textFileEncoding = nullptr
)
new :
fileName : string *
type : Type *
?textFileEncoding : Encoding
(* Defaults:
let _textFileEncoding = defaultArg textFileEncoding null
*)
-> ResXFileRef
Parameters
- fileName String
- The file to reference.
- type Type
- The type of the resource that is referenced. Should be either String, array of Byte, MemoryStream or a type, which has a constructor with one Stream parameter.
- textFileEncoding Encoding (Optional)
- The encoding used in the referenced file. Used if type is String. This parameter is optional.
Default value: .