Welcome to NexusFi: the best trading community on the planet, with over 200,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- discounts are available after registering.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
I have a List<Flag> myList.
The method of the Class Flag is : Flag(string name, int barNb, DateTime barTime)
the question about it is in the createFlag(List<Flag> flagListName) method.
ultimately, we try to fill the myList.Name accordingly and
the expected output is : myList.Last().Name is : myList, how to get there ?
Thank you.
Can you help answer these questions from other members on NexusFi?
I think you should rephrase your question. I tried to read it three times and didn't get what you want / what the problem is.
Cheers,
D.
Hey, Thanks Eubie,
Wow I am so sorry for the lack of clarity, and the wrong choice of words, here is how I would rephrase it :
Is it possible to convert the method parameter (flagListName) into a string, inside the createFlag() method ? In order to make it a string that will be added to myList as the name of the flag.
something that may look like this :
flagListName .Add(new Flag( somesyntax(flagListName), CurrentBar-1, Time[1]));
One way to go around this could be to add a string parameter as follow.
I just wondered if the conversion could be done inside the method. And evaluate if it would be worth it.