M
moondaddy
I'm working with c# 3.0 and am wondering if I can make a class return a
value like a function. For example, I would like to do something like this:
Point pt;
pt=SomeClass someclass=new SomeClass(double param1, double param2, double
param3);
I have some complex calculations I need to do to get a point's X and Y
values, and I wanted to break this off to a separate class. I also wanted
to make it as simple as possible to get the return value such as doing it
all in one line as above. It cant be a static class because the params
passed in will be stored as class level variables while a number of methods
process them.
Any good recommendations for this?
Thanks.
value like a function. For example, I would like to do something like this:
Point pt;
pt=SomeClass someclass=new SomeClass(double param1, double param2, double
param3);
I have some complex calculations I need to do to get a point's X and Y
values, and I wanted to break this off to a separate class. I also wanted
to make it as simple as possible to get the return value such as doing it
all in one line as above. It cant be a static class because the params
passed in will be stored as class level variables while a number of methods
process them.
Any good recommendations for this?
Thanks.