Skip to content

Commit

Permalink
Update ReflectionHelpers.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
abatishchev authored Oct 1, 2024
1 parent 5d37d56 commit bc7949b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/ServiceFabric.Mocks/ReflectionHelpers.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

using static ServiceFabric.Mocks.Constants;

Expand All @@ -16,6 +12,7 @@ public static T CreateInstance<T>()
{
return (T)Activator.CreateInstance(typeof(T), BindingFlags.Instance | BindingFlags.NonPublic, null, null, CultureInfo.CurrentCulture);
}

public static T CreateInstance<T>(object[] args)
{
return (T)Activator.CreateInstance(typeof(T), BindingFlags.Instance | BindingFlags.NonPublic, null, args, CultureInfo.CurrentCulture);
Expand Down

0 comments on commit bc7949b

Please sign in to comment.