Click or drag to resize

ExtensionMethodskSaveToJsonFileT Method

Saves a class in JSON format to a file

Namespace:  Koden.Utils.Extensions
Assembly:  Koden.Utils (in Koden.Utils.dll) Version: 1.1.6453.26060
Syntax
public static void kSaveToJsonFile<T>(
	this T tClass,
	string fileName = "",
	bool append = false
)

Parameters

tClass
Type: T
The class to persist to file.
fileName (Optional)
Type: SystemString
Name of the file.
append (Optional)
Type: SystemBoolean
append to file? (logging, maybe).

Type Parameters

T
The type of the class.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also