Class Library Set Property / Field Default or Initial Values?
Q. How do I set the Property / Field Default or Initial values in a Class Library (.dll)?
I've read about Attributes and it doesn't seem the best approach. The example below is a simple illustration of properties/fields which need to be used, but don't neccessarilly need user setup. Note: it'a a static class.
public static class FtpClient { private static bool _useBinary = false; public static bool UseBinary { set { _useBinary = value; } } }