PDA

View Full Version : Does writing Ninja Script code with "this." prefixes cause problems?


ChiTrader2000
01-11-2009, 07:05 AM
Hello,

Does writing Ninja Script code with "this." prefixes cause problems?

I seem to recall someone on the forums suggesting that it might be problematic, and I am trying to polish off a Ninja Trader application in which I have typed "this." on lots of lines. I have also told my users that typing "this." is good because it gives them great intellisense so that they can see all the possible choices when they are programming.

Thanks in advance,

ChiTrader2000

NinjaTrader_Dierk
01-11-2009, 07:48 AM
>> Does writing Ninja Script code with "this." prefixes cause problems?
No. No need to clean up your code. Please consult MS docs on C# for details.

ChiTrader2000
01-11-2009, 11:17 AM
Hello NinjaTrader_Dierk,

Thanks for the quick reply.

I am glad to hear that using "this." syntax is fine in NT. Not sure where I heard the rumor that it might be a problem.

Thanks again,

ChiTrader2000

mrlogik
01-11-2009, 02:02 PM
I use .this all the time and it works fine.

Any programming nomenclature you can you in C# in general, you should also be able to do in NT.