Extended 1.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package Extended --version 1.0.1
NuGet\Install-Package Extended -Version 1.0.1
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="Extended" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Extended --version 1.0.1
#r "nuget: Extended, 1.0.1"
#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 Extended as a Cake Addin
#addin nuget:?package=Extended&version=1.0.1

// Install Extended as a Cake Tool
#tool nuget:?package=Extended&version=1.0.1

System.Extended

[Description("Test class")]
class Test
{
    public Test()
    {
    }

    [Description("A property")]
    public int A { get; set; }

    [Description("B property")]
    public int B { get; set; }

    [Description("Foo method")]
    public void Foo()
    {

    }

    [Description("a field")]
    public int a;
}

Test test = new Test();
test.GetAttribute<DescriptionAttribute>(null, GetAttributeType.Class).Description;
test.GetAttribute<DescriptionAttribute>(nameof(Test.A), GetAttributeType.Property).Description;
test.GetAttribute<DescriptionAttribute>(nameof(Test.B), GetAttributeType.Property).Description;
test.GetAttribute<DescriptionAttribute>(nameof(Test.Foo), GetAttributeType.Method).Description;
test.GetAttribute<DescriptionAttribute>(nameof(Test.a), GetAttributeType.Field).Description;

Guid.NewGuid().ToByteArray().GetHash(MD5.Create()).Join(" ");

"".IsEmpty() ? "Строка пустая" : "Строка не пустая";
"Hello, world!".IsMatch(".") ? "Строка соответствует паттерну" : "Строка не соответствует паттерну";
$"md5(\"Hello, World!\") = {"\"Hello, World\"".GetStringHash(MD5.Create())}");
"md5(\"Hello, World!\") = " + string.Join(" ", "\"Hello, World\"".GetHash(MD5.Create()));

Enumerable.Range(0, 5).Append(666).ForEach(Console.WriteLine); //Добавить объект в последовательность
IEnumerable<int> oneInt = LinqExtenstion.Create(10); //Создаем последовательность из 1 объекта

oneInt.IsEmpty(); //Проверка на наличие элементов.
List<int> list = null;
list.IsNullOrEmpty(); //Проверка на null или наличие элементов.
Enumerable.Range(0, 10).Shuffle().Join(",")); //Сортировка в случайном порядке, объединение всей последовательности в одну.
Enumerable.Range(0, 10).Chunk(2).ForEach(x => Console.WriteLine(x.Join(","))); //Генерируем последовательность от 0 до 9, разбиваем на 4 части по 3 эл-та (IEnumerable<IEnumerable<int>>).
Enumerable.Range(0, 10).TakeSkip(1, 1).ForEach(Console.WriteLine); //Берем 1 элемент, после него пропускаем 1 элемент и так до конца последовательности (в данном примере получается каждый 2-ой элемент).
Product Compatible and additional computed target framework versions.
.NET Framework net is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.3 385 10/29/2022
1.0.2 348 10/29/2022
1.0.1 608 1/30/2020
1.0.0 3,587 9/12/2018

Extensions for: byte[], string, Attribute, LINQ.