 | 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
Syntaxpublic static void kSaveToJsonFile<T>(
this T tClass,
string fileName = "",
bool append = false
)
<ExtensionAttribute>
Public Shared Sub kSaveToJsonFile(Of T) (
tClass As T,
Optional fileName As String = "",
Optional append As Boolean = false
)
public:
[ExtensionAttribute]
generic<typename T>
static void kSaveToJsonFile(
T tClass,
String^ fileName = L"",
bool append = false
)
[<ExtensionAttribute>]
static member kSaveToJsonFile :
tClass : 'T *
?fileName : string *
?append : bool
(* Defaults:
let _fileName = defaultArg fileName ""
let _append = defaultArg append false
*)
-> unit
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