Note
The compatibility with System.Resources.ResXDataNode is provided without any reference to System.Windows.Forms.dll, where that type is located.
public ResXDataNode(
string name,
Object? value
)
Public Sub New (
name As String,
value As Object
)
public:
ResXDataNode(
String^ name,
Object^ value
)
new :
name : string *
value : Object -> ResXDataNode
Unlike System.Resources.ResXDataNode, KGySoft.Resources.ResXDataNode supports non-serializable types, too. See the details in the Remarks section of the ResXDataNode.
If value is another ResXDataNode instance the new ResXDataNode instance will be a copy of it with a possibly new name specified in the name parameter. A System.Resources.ResXDataNode instance is also recognized.
If value is a ResXFileRef instance, the new ResXDataNode will refer to a file reference. A System.Resources.ResXFileRef instance is also recognized. For ResXFileRef a value with relative path you might want to use the ResXDataNode(string, ResXFileRef, string) constructor where you can specify a base path.
ArgumentNullException | name is . |
ArgumentException | name is a string of zero length. |