StockSharp.Media.Names
5.0.1
Prefix Reserved
dotnet add package StockSharp.Media.Names --version 5.0.1
NuGet\Install-Package StockSharp.Media.Names -Version 5.0.1
<PackageReference Include="StockSharp.Media.Names" Version="5.0.1" />
<PackageVersion Include="StockSharp.Media.Names" Version="5.0.1" />
<PackageReference Include="StockSharp.Media.Names" />
paket add StockSharp.Media.Names --version 5.0.1
#r "nuget: StockSharp.Media.Names, 5.0.1"
#:package StockSharp.Media.Names@5.0.1
#addin nuget:?package=StockSharp.Media.Names&version=5.0.1
#tool nuget:?package=StockSharp.Media.Names&version=5.0.1
StockSharp Media.Names
Media.Names is a lightweight utility library that provides strongly typed access to the names of media assets used throughout the StockSharp ecosystem. It contains a single static class, MediaNames
, whose members correspond to the files located in the Media
project under the logos
directory.
How It Works
The actual constant fields in MediaNames
are generated at build time by the MediaNamesGenerator
Roslyn source generator. During compilation the generator scans the Media/logos
folder for all .png
and .svg
files and then emits a partial definition of the MediaNames
class. Each logo file becomes a public const string
field whose value is the file name. This approach ensures that the set of available media names always stays in sync with the images embedded in StockSharp.Media
.
Why Use Media.Names?
Referencing image files by string literal is error‑prone. Media.Names eliminates typos by offering compile‑time constants. These constants are commonly used with the MediaIconAttribute
to associate an icon with a connector or other component:
[MediaIcon(Media.MediaNames.binance)]
public class BinanceMessageAdapter { /* ... */ }
Because the constants are generated automatically, you never need to edit the file manually when new logos are added.
Adding New Icons
- Place the
.png
or.svg
file into theMedia/logos
directory of the repository.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
This package has no dependencies.
NuGet packages (20)
Showing the top 5 NuGet packages that depend on StockSharp.Media.Names:
Package | Downloads |
---|---|
StockSharp.Fix.Core
Fix core. More info on web site https://stocksharp.com/store/ |
|
StockSharp.Fix
FIX/FAST |
|
StockSharp.AlphaVantage
AlphaVantage |
|
StockSharp.DukasCopy
DukasCopy |
|
StockSharp.Finam
Finam |
GitHub repositories
This package is not used by any popular GitHub repositories.
Clarify Hydra analytics usage
Merge branch 'master' of https://github.com/StockSharp/stocksharp
Remove internal links from Media.Names README
Remove license references from READMEs
Add README for Media.Names project