The beauty is that to use an extension method, you don't have to add a
using Community.Components; However, the version of the C.Components library must be actual (update using the Extension Manager if it's not).
Also, don't expect to find GetAllDataForSymbol (or any other extension method or
any method from a 3rd party DLL for that matter) on IntelliSense in Wealth-Lab: it does not work. That's a known limitation. In Visual Studio though, it does work after following steps below.
The Bars.Symbol property is of course a string and will remain it with or without extension methods. Follow the link above supplied by Cone to get familiar with extension methods, as it's a relatively new concept (C# 3.0).
QUOTE:
Also, in Visual Studio the Symbol is just a string property in the Bars object (not an object itself).
This is not a supported use case for extension methods. To use an extension method in your .NET 4.x-based Visual Studio solution, there has to be a
using System.Linq (added by default), plus the namespace the method comes from:
CODE:
Please log in to see this code.
After adding a reference to WealthLab.Components.Comunity.dll in your solution, you'll be able to find
GetAllDataForSymbol on IntelliSense in Visual Studio. To find out where a particular extension method is located, browse the open source code of C.Components. Or, simply use old syntax where available.