Skip to content

Commit e7035ed

Browse files
committed
Warnings fixed
1 parent f11ee61 commit e7035ed

14 files changed

+45
-19
lines changed

.vs/restore.dg

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
#:C:\OneDrive\Delegates\NETStandard\DelegatesTest — kopia\DelegatesTest.xproj
2-
C:\OneDrive\Delegates\NETStandard\DelegatesTest — kopia\DelegatesTest.xproj|C:\OneDrive\Delegates\NETStandard\DelegatesFactory\DelegatesFactory.csproj
3-
C:\OneDrive\Delegates\NETStandard\DelegatesTest — kopia\DelegatesTest.xproj|C:\OneDrive\Delegates\NETCore\DelegatesFactory\DelegatesFactory.xproj
1+
#:C:\OneDrive\Delegates\Platforms\NETStandard\DelegatesTest\DelegatesTest.xproj
2+
C:\OneDrive\Delegates\Platforms\NETStandard\DelegatesTest\DelegatesTest.xproj|C:\OneDrive\Delegates\Platforms\NETStandard\DelegatesFactory\DelegatesFactory.csproj

Platforms/NETCore/DelegatesTest/project.fragment.lock.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
"type": "project",
66
"framework": ".NETStandard,Version=v1.5",
77
"compile": {
8-
"bin/Release/DelegatesFactory.dll": {}
8+
"bin/Debug/DelegatesFactory.dll": {}
99
},
1010
"runtime": {
11-
"bin/Release/DelegatesFactory.dll": {}
11+
"bin/Debug/DelegatesFactory.dll": {}
1212
},
1313
"contentFiles": {
14-
"bin/Release/DelegatesFactory.pdb": {
14+
"bin/Debug/DelegatesFactory.pdb": {
1515
"buildAction": "None",
1616
"codeLanguage": "any",
1717
"copyToOutput": true

Platforms/NETCore/DelegatesTest/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"dependencies": {
88
"System.Runtime.Serialization.Primitives": "4.1.1",
99
"xunit": "2.1.0",
10-
"dotnet-test-xunit": "1.0.0-rc2-192208-24"
10+
"dotnet-test-xunit": "1.0.0-rc2-build10015"
1111
},
1212
"testRunner": "xunit",
1313
"frameworks": {

Platforms/NETCore/DelegatesTest/project.lock.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7928,12 +7928,12 @@
79287928
},
79297929
"projectFileDependencyGroups": {
79307930
"": [
7931-
"DelegatesFactory >= 1.0.0-*",
79327931
"System.Runtime.Serialization.Primitives >= 4.1.1",
7933-
"dotnet-test-xunit >= 1.0.0-rc2-192208-24",
7932+
"dotnet-test-xunit >= 1.0.0-rc2-build10015",
79347933
"xunit >= 2.1.0"
79357934
],
79367935
".NETCoreApp,Version=v1.0": [
7936+
"DelegatesFactory",
79377937
"Microsoft.NETCore.App >= 1.0.1"
79387938
]
79397939
},

Platforms/NETStandard/DelegatesTest/project.fragment.lock.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
"type": "project",
66
"framework": ".NETStandard,Version=v1.5",
77
"compile": {
8-
"bin/Release/DelegatesFactory.dll": {}
8+
"bin/Debug/DelegatesFactory.dll": {}
99
},
1010
"runtime": {
11-
"bin/Release/DelegatesFactory.dll": {}
11+
"bin/Debug/DelegatesFactory.dll": {}
1212
},
1313
"contentFiles": {
14-
"bin/Release/DelegatesFactory.pdb": {
14+
"bin/Debug/DelegatesFactory.pdb": {
1515
"buildAction": "None",
1616
"codeLanguage": "any",
1717
"copyToOutput": true

Platforms/NETStandard/DelegatesTest/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"dependencies": {
88
"System.Runtime.Serialization.Primitives": "4.1.1",
99
"xunit": "2.1.0",
10-
"dotnet-test-xunit": "1.0.0-rc2-192208-24"
10+
"dotnet-test-xunit": "1.0.0-rc2-build10015"
1111
},
1212
"testRunner": "xunit",
1313
"frameworks": {

Platforms/NETStandard/DelegatesTest/project.lock.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7708,7 +7708,7 @@
77087708
"projectFileDependencyGroups": {
77097709
"": [
77107710
"System.Runtime.Serialization.Primitives >= 4.1.1",
7711-
"dotnet-test-xunit >= 1.0.0-rc2-192208-24",
7711+
"dotnet-test-xunit >= 1.0.0-rc2-build10015",
77127712
"xunit >= 2.1.0"
77137713
],
77147714
".NETCoreApp,Version=v1.0": [

src/DelegatesApp/ConsoleApplication.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
using Delegates.Extensions;
1313
using DelegatesTest.TestObjects;
1414

15+
#pragma warning disable CS0612 // Type or member is obsolete
1516
namespace DelegatesApp
1617
{
1718
internal class ConsoleApplication
@@ -1219,4 +1220,5 @@ private static void TestProperties()
12191220
Console.WriteLine($"Private set property retriever: {_stopWatch.ElapsedMilliseconds}");
12201221
}
12211222
}
1222-
}
1223+
}
1224+
#pragma warning restore CS0612 // Type or member is obsolete

src/DelegatesFactory/DelegateFactory_InstanceGenericMethod.cs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,20 @@ public static Action<object, object[]> InstanceGenericMethodVoid(this Type sourc
3939
{
4040
return InstanceGenericMethod<Action<object, object[]>>(source, name, typeParams, paramsTypes);
4141
}
42-
42+
43+
/// <summary>
44+
/// Creates delegate to generic instance method with unspecified number of parameters passed as array
45+
/// of objects from instance as object.
46+
/// </summary>
47+
/// <typeparam name="TDelegate">Either Action{object,object[]} or Function{object,object[],object}</typeparam>
48+
/// <param name="source">Type with defined method</param>
49+
/// <param name="name">Name of method</param>
50+
/// <param name="paramsTypes">Types of parameters</param>
51+
/// <param name="typeParams">Type parameters for generic instance method</param>
52+
/// <returns>Delegate for void generic instance method</returns>
53+
/// <remarks>
54+
/// Intended for internal use.
55+
/// </remarks>
4356
#if !NETCORE
4457
internal
4558
#else

src/DelegatesFactory/DelegateFactory_StaticMethod.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,19 @@ public static Action<object[]> StaticMethodVoid(this Type source, string name, p
6363
return StaticMethod<Action<object[]>>(source, name, null, paramsTypes);
6464
}
6565

66+
/// <summary>
67+
/// Creates delegate to generic static method with unspecified number of parameters passed as array
68+
/// of objects from instance as object.
69+
/// </summary>
70+
/// <typeparam name="TDelegate">Either Action{object[]} or Function{object[],object}</typeparam>
71+
/// <param name="source">Type with defined method</param>
72+
/// <param name="name">Name of method</param>
73+
/// <param name="paramsTypes">Types of parameters</param>
74+
/// <param name="typeParams">Type parameters for generic instance method</param>
75+
/// <returns>Delegate for void generic static method</returns>
76+
/// <remarks>
77+
/// Intended for internal use.
78+
/// </remarks>
6679
#if !NETCORE
6780
internal
6881
#else

0 commit comments

Comments
 (0)