![]() |
VOOZH | about |
dotnet add package Black.Beard.ComponentModel.Attributes --version 1.0.196
NuGet\Install-Package Black.Beard.ComponentModel.Attributes -Version 1.0.196
<PackageReference Include="Black.Beard.ComponentModel.Attributes" Version="1.0.196" />
<PackageVersion Include="Black.Beard.ComponentModel.Attributes" Version="1.0.196" />Directory.Packages.props
<PackageReference Include="Black.Beard.ComponentModel.Attributes" />Project file
paket add Black.Beard.ComponentModel.Attributes --version 1.0.196
#r "nuget: Black.Beard.ComponentModel.Attributes, 1.0.196"
#:package Black.Beard.ComponentModel.Attributes@1.0.196
#addin nuget:?package=Black.Beard.ComponentModel.Attributes&version=1.0.196Install as a Cake Addin
#tool nuget:?package=Black.Beard.ComponentModel.Attributes&version=1.0.196Install as a Cake Tool
Method helper for resolve types and methods.
Method helper for resolve types and methods.
// the provider that provide the list of items
public class TestProviderList : ProviderListBase<CultureInfo>
{
/// <summary>
/// Get the list of items
/// </summary>
/// <returns></returns>
public override IEnumerable<ListItem<CultureInfo>> GetItems()
{
List<ListItem<CultureInfo>> result = new List<ListItem<CultureInfo>>();
var items = CultureInfo.GetCultures(CultureTypes.AllCultures);
foreach (var item in items)
{
var tag = item;
var display = item.EnglishName;
var key = item.IetfLanguageTag;
result.Add(CreateItem(tag, display, key, a =>
{
a.Name = item.Name;
}));
}
return result;
}
}
// a class that use the provider
public class Class1
{
[ListProvider(typeof(TestProviderList))]
public CultureInfo Culture { get; set; }
}
// code for call the list provider
var class1 = new Class1()
{
Culture = CultureInfo.CurrentCulture,
};
var property = typeof(Class1).GetPropertyDescriptors("Culture").First();
var attribute = property.GetAttribute<ListProviderAttribute>();
var provider = attribute.GetProvider(property, class1);
var items = provider.GetItems();
var current = items.First(c => c.Selected);
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 is compatible. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 5 NuGet packages that depend on Black.Beard.ComponentModel.Attributes:
| Package | Downloads |
|---|---|
|
Black.Beard.ComponentModel
Package Description |
|
|
Black.Beard.Web.Server
Provide a service base for just concentrate your services |
|
|
Black.Beard.Configurations.ConfigurationProvider.SqlServer
Package Description |
|
|
Black.Beard.Configurations
Package Description |
|
|
Black.Beard.Sql
Package Description |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.196 | 632 | 4/14/2025 |
| 1.0.195 | 379 | 4/14/2025 |
| 1.0.194 | 389 | 4/14/2025 |
| 1.0.193 | 371 | 4/14/2025 |
| 1.0.192 | 386 | 4/14/2025 |
| 1.0.191 | 386 | 4/14/2025 |
| 1.0.190 | 353 | 4/10/2025 |
| 1.0.189 | 354 | 4/10/2025 |
| 1.0.188 | 360 | 4/10/2025 |
| 1.0.187 | 285 | 4/5/2025 |
| 1.0.186 | 346 | 4/3/2025 |
| 1.0.185 | 372 | 4/3/2025 |
| 1.0.184 | 363 | 4/3/2025 |
| 1.0.183 | 369 | 4/2/2025 |
| 1.0.182 | 355 | 4/2/2025 |
| 1.0.181 | 341 | 4/2/2025 |
| 1.0.180 | 342 | 4/2/2025 |
| 1.0.179 | 433 | 4/1/2025 |
| 1.0.178 | 345 | 3/29/2025 |
| 1.0.177 | 294 | 3/29/2025 |