Hi,
I'm working on a console application which also have class library in it.
I added refrence of class library to console project as show above. In class library i have following code.
- namespace SomeClass
- {
- public class ClassOne
- {
- public string[] SupportedFiles;
- }
- }
And in console app, program.cs, i'm trying to assign SupportedFiles.
- class Program
- {
- public ClassOne class1 { get; set; }
- public Program()
- {
- class1.SupportedArchitectures = new string[] { "Test", "Test" };
- }
- }
But line number 6 class1.SupportedArchitectures = new string[] { "Test", "Test" }; throws an error.
What am i missing? Am I so dumb instantiating a string array. Please help me out