Black.Beard.ComponentModel.Attributes 1.0.89

dotnet add package Black.Beard.ComponentModel.Attributes --version 1.0.89
NuGet\Install-Package Black.Beard.ComponentModel.Attributes -Version 1.0.89
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Black.Beard.ComponentModel.Attributes" Version="1.0.89" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Black.Beard.ComponentModel.Attributes --version 1.0.89
#r "nuget: Black.Beard.ComponentModel.Attributes, 1.0.89"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Black.Beard.ComponentModel.Attributes as a Cake Addin
#addin nuget:?package=Black.Beard.ComponentModel.Attributes&version=1.0.89

// Install Black.Beard.ComponentModel.Attributes as a Cake Tool
#tool nuget:?package=Black.Beard.ComponentModel.Attributes&version=1.0.89

Black.Beard.ComponentModel

Build status

PropertyDescriptors

Method helper for resolve types and methods.

PropertyDescriptor.md

Auto discovering

Method helper for resolve types and methods.

Exposing class for auto discovering.md

factory for create fast activator & fast method calling

Factory.md

Provider List


    // 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 Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net5.0

    • No dependencies.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on Black.Beard.ComponentModel.Attributes:

Package Downloads
Black.Beard.ComponentModel

Package Description

Black.Beard.Configurations.ConfigurationProvider.SqlServer

Package Description

Black.Beard.Sql

Package Description

Black.Beard.Configurations

Package Description

Black.Beard.Web.Server

Provide a service base for just concentrate your services

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.89 0 4/24/2024
1.0.88 7 4/24/2024
1.0.87 22 4/24/2024
1.0.86 73 4/22/2024
1.0.85 65 4/22/2024
1.0.84 61 4/21/2024
1.0.83 67 4/21/2024
1.0.82 59 4/21/2024
1.0.81 58 4/21/2024
1.0.80 61 4/21/2024
1.0.79 56 4/18/2024
1.0.78 47 4/18/2024
1.0.77 61 4/18/2024
1.0.76 50 4/18/2024
1.0.75 84 4/15/2024
1.0.74 102 4/14/2024
1.0.73 91 4/14/2024
1.0.72 91 4/14/2024
1.0.71 90 4/14/2024
1.0.70 100 4/13/2024
1.0.69 86 4/13/2024
1.0.68 79 4/13/2024
1.0.67 86 4/13/2024
1.0.66 87 4/13/2024
1.0.65 96 4/13/2024
1.0.64 83 4/12/2024
1.0.63 87 4/12/2024
1.0.62 90 4/11/2024
1.0.61 84 4/10/2024
1.0.60 89 4/8/2024
1.0.58 156 4/6/2024
1.0.57 913 3/9/2024
1.0.56 135 3/5/2024
1.0.55 110 3/5/2024
1.0.54 104 3/4/2024
1.0.53 154 3/4/2024
1.0.52 261 3/3/2024
1.0.51 85 3/3/2024
1.0.50 97 3/3/2024
1.0.49 93 3/2/2024
1.0.48 596 2/4/2024
1.0.47 101 1/27/2024
1.0.46 150 1/6/2024
1.0.45 114 1/6/2024
1.0.44 137 1/6/2024
1.0.43 109 1/6/2024
1.0.41 1,402 6/17/2023
1.0.40 243 6/17/2023
1.0.37 6,245 3/19/2022
1.0.36 4,219 3/15/2022
1.0.35 561 3/6/2022
1.0.34 2,267 2/11/2022
1.0.33 646 2/11/2022
1.0.32 560 2/11/2022
1.0.30 534 2/11/2022
1.0.29 559 2/9/2022
1.0.28 521 2/8/2022
1.0.27 523 2/8/2022
1.0.26 529 2/8/2022
1.0.25 540 2/6/2022
1.0.24 587 2/4/2022
1.0.23 558 2/2/2022
1.0.22 549 2/1/2022
1.0.21 562 1/27/2022
1.0.20 557 1/27/2022
1.0.19 572 1/26/2022
1.0.18 562 1/26/2022
1.0.17 554 1/20/2022
1.0.16 560 1/15/2022
1.0.15 564 1/15/2022
1.0.14 564 1/12/2022
1.0.13 463 1/12/2022
1.0.12 577 1/12/2022
1.0.9 310 1/9/2022
1.0.8 311 1/9/2022
1.0.7 302 1/9/2022
1.0.6 318 1/8/2022
1.0.5 10,788 12/19/2021
1.0.4 329 12/19/2021
1.0.3 364 12/19/2021