Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Ambiguous reference between NinjaTrader.Cbi and NinjaTrader.CQG.ProtoBuf ?
Collapse
X
-
Ambiguous reference between NinjaTrader.Cbi and NinjaTrader.CQG.ProtoBuf ?
I have noticed that I cannot have NinjaTrader.CQG.Protobuf in my using declarations or else it gives ambiguity errors about Account and Order. But if I dont use the CQG, things do not work on CQG connections. How do I get around this? Attached it screenshot showing things.Tags: None
-
Answer is obvious, right?
I mean, when you want the compiler to see an NT Account,
and be guaranteed that it sees an NT Account and no other,
then use the full qualified type name for an NT Account,
which is NinjaTrader.Cbi.Account.
Same with an NT Order.
-=o=-
Using fully qualified names guarantees the exact type
is being referenced -- sometimes, a FQN is absolutely
required to resolve ambiguities due to conflicting type
names within the namespaces.
You can't do anything about the choice of type names,
those are chosen by the original programmers, so just
use the FQN and move on.
Such is the life of a programmer ...
-
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
43 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
20 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
29 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
46 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
38 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment