I want to return a value for my class without needing to call a method in that class.
For example:
class MyClass1
{
String myString = "A String";
}
MyClass1.myString would give me: A String wherever used.
What I need is a List<String> that will return as a CSV String when used:
class MyClass1
{
MyClass2 myClass;
}
MyClass1.myClass.Add("Test1");
MyClass1.myClass.Add("Test2");
In this example I want MyClass1.myClass to return: Test1, Test2
So I need to be able to create a class that can be used similarly to a String class but has the functionality of List<String>.
Neil
For example:
class MyClass1
{
String myString = "A String";
}
MyClass1.myString would give me: A String wherever used.
What I need is a List<String> that will return as a CSV String when used:
class MyClass1
{
MyClass2 myClass;
}
MyClass1.myClass.Add("Test1");
MyClass1.myClass.Add("Test2");
In this example I want MyClass1.myClass to return: Test1, Test2
So I need to be able to create a class that can be used similarly to a String class but has the functionality of List<String>.
Neil