Skip to content

Commit 1c07af7

Browse files
committed
docs
1 parent 7e7a4b2 commit 1c07af7

File tree

6 files changed

+33
-7
lines changed

6 files changed

+33
-7
lines changed

apiCount.include.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
**API count: 520**
1+
**API count: 522**

api_list.include.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,12 @@
233233
* `bool IsNullable(MemberInfo)`
234234

235235

236+
#### MethodInfo
237+
238+
* `T CreateDelegate<T>(MethodInfo) where T : Delegate` [reference](https://learn.microsoft.com/en-us/dotnet/api/System.Reflection.MethodInfo.CreateDelegate#system-reflection-methodinfo-createdelegate-1)
239+
* `T CreateDelegate<T>(MethodInfo, object?) where T : Delegate` [reference](https://learn.microsoft.com/en-us/dotnet/api/System.Reflection.MethodInfo.CreateDelegate?#system-reflection-methodinfo-createdelegate-1(system-object))
240+
241+
236242
#### OrderedDictionary<TKey, TValue>
237243

238244
* `bool TryAdd<TKey, TValue>(OrderedDictionary<TKey, TValue>, TKey, TValue, int) where TKey : notnull` [reference](https://github.com/dotnet/core/blob/main/release-notes/10.0/preview/preview1/libraries.md#additional-tryadd-and-trygetvalue-overloads-for-ordereddictionarytkey-tvalue)

readme.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The package targets `netstandard2.0` and is designed to support the following ru
1212
* `net5.0`, `net6.0`, `net7.0`, `net8.0`, `net9.0`, `net10.0`
1313

1414

15-
**API count: 520**<!-- singleLineInclude: apiCount. path: /apiCount.include.md -->
15+
**API count: 522**<!-- singleLineInclude: apiCount. path: /apiCount.include.md -->
1616

1717

1818
**See [Milestones](../../milestones?state=closed) for release notes.**
@@ -707,6 +707,12 @@ The class `Polyfill` includes the following extension methods:
707707
* `bool IsNullable(MemberInfo)`
708708

709709

710+
#### MethodInfo
711+
712+
* `T CreateDelegate<T>(MethodInfo) where T : Delegate` [reference](https://learn.microsoft.com/en-us/dotnet/api/System.Reflection.MethodInfo.CreateDelegate#system-reflection-methodinfo-createdelegate-1)
713+
* `T CreateDelegate<T>(MethodInfo, object?) where T : Delegate` [reference](https://learn.microsoft.com/en-us/dotnet/api/System.Reflection.MethodInfo.CreateDelegate?#system-reflection-methodinfo-createdelegate-1(system-object))
714+
715+
710716
#### OrderedDictionary<TKey, TValue>
711717

712718
* `bool TryAdd<TKey, TValue>(OrderedDictionary<TKey, TValue>, TKey, TValue, int) where TKey : notnull` [reference](https://github.com/dotnet/core/blob/main/release-notes/10.0/preview/preview1/libraries.md#additional-tryadd-and-trygetvalue-overloads-for-ordereddictionarytkey-tvalue)

src/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project>
33
<PropertyGroup>
4-
<Version>7.20.0</Version>
4+
<Version>7.21.0</Version>
55
<AssemblyVersion>1.0.0</AssemblyVersion>
66
<PackageTags>Polyfill</PackageTags>
77
<DisableImplicitNamespaceImports>true</DisableImplicitNamespaceImports>

src/Polyfill/Polyfill_IEnumerable_MaxBy.cs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,15 @@ static partial class Polyfill
3939
IComparer<TKey>? comparer)
4040
{
4141
// Simplified from https://github.com/dotnet/runtime/blob/5d09a8f94c72ca4ef0a9c79eb9c58d06198e3ba9/src/libraries/System.Linq/src/System/Linq/Max.cs#L445-L526
42-
if (source is null) throw new ArgumentNullException(nameof(source));
43-
if (keySelector is null) throw new ArgumentNullException(nameof(keySelector));
42+
if (source is null)
43+
{
44+
throw new ArgumentNullException(nameof(source));
45+
}
46+
47+
if (keySelector is null)
48+
{
49+
throw new ArgumentNullException(nameof(keySelector));
50+
}
4451

4552
comparer ??= Comparer<TKey>.Default;
4653

src/Polyfill/Polyfill_IEnumerable_MinBy.cs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,15 @@ static partial class Polyfill
3939
IComparer<TKey>? comparer)
4040
{
4141
// Simplified from https://github.com/dotnet/runtime/blob/5d09a8f94c72ca4ef0a9c79eb9c58d06198e3ba9/src/libraries/System.Linq/src/System/Linq/Min.cs#L413-L503
42-
if (source is null) throw new ArgumentNullException(nameof(source));
43-
if (keySelector is null) throw new ArgumentNullException(nameof(keySelector));
42+
if (source is null)
43+
{
44+
throw new ArgumentNullException(nameof(source));
45+
}
46+
47+
if (keySelector is null)
48+
{
49+
throw new ArgumentNullException(nameof(keySelector));
50+
}
4451

4552
comparer ??= Comparer<TKey>.Default;
4653

0 commit comments

Comments
 (0)