C# Class WinLib.IO.Xml

Datei anzeigen Open project: SortByte/Network-Manager

Public Methods

Method Description
CheckIfNull ( Type type, object targetObj, object defaultObj ) : object

Recursively checks each object's fields if they are null, and if they are, it assigns to them a value form the dafault object

Method Details

CheckIfNull() public static method

Recursively checks each object's fields if they are null, and if they are, it assigns to them a value form the dafault object
public static CheckIfNull ( Type type, object targetObj, object defaultObj ) : object
type System.Type Object type
targetObj object Target object to check
defaultObj object Default object from which to extract the default values (must be of the same type as the target)
return object