This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
Register
Sign In
youys
/
Discord.Net
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
34
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
move deconstruct extensions method to extensions folder
pull/2211/head
Cenngo
3 years ago
parent
95c4893af1
commit
48712ad650
2 changed files
with
10 additions
and
9 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+0
-9
src/Discord.Net.Core/Entities/Interactions/ApplicationCommandOption.cs
+10
-0
src/Discord.Net.Core/Extensions/GenericCollectionExtensions.cs
+ 0
- 9
src/Discord.Net.Core/Entities/Interactions/ApplicationCommandOption.cs
View File
@@ -146,13 +146,4 @@ namespace Discord
}
}
}
public static class Test
{
public static void Deconstruct<T1, T2>(this KeyValuePair<T1, T2> kvp, out T1 key, out T2 value)
{
key = kvp.Key;
value = kvp.Value;
}
}
}
+ 10
- 0
src/Discord.Net.Core/Extensions/GenericCollectionExtensions.cs
View File
@@ -0,0 +1,10 @@
namespace System.Collections.Generic;
public static class GenericCollectionExtensions
{
public static void Deconstruct<T1, T2>(this KeyValuePair<T1, T2> kvp, out T1 value1, out T2 value2)
{
value1 = kvp.Key;
value2 = kvp.Value;
}
}
Write
Preview
Loading…
Cancel
Save