Is there a way to include a File Content inside the Class ,not just Text Files but also Binary Files like a Char Array ,or String or whatever in Earth it could be ,so in Constructor my Class Should write That content into a File in a specified file .
This File can be an .exe , .pdf , .xls , .xml etc…
I’m not exactly sure what you mean by include “a File Content inside the Class” but from what I’m guessing you mean (storing entire files inside a class?) you may want to look at Base64 encoding which is an encoding scheme that will let you convert any binary data into a ASCII string.
To store your binary data you can convert any
byte[]into a Base64 encoded string usingConvert.ToBase64Stringand store that in your class. To get it back useConvert.FromBase64Stringto get abyte[].