Skip to content

Commit 0d50720

Browse files
committed
Fix declaration in IProxyGenerator
1 parent 43e3bee commit 0d50720

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Castle.Core/DynamicProxy/IProxyGenerator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,7 +1051,7 @@ object CreateClassProxy(Type classToProxy, Type[] additionalInterfacesToProxy,
10511051
/// This method uses <see cref = "IProxyBuilder" /> implementation to generate a proxy type.
10521052
/// As such caller should expect any type of exception that given <see cref = "IProxyBuilder" /> implementation may throw.
10531053
/// </remarks>
1054-
public TClass CreateClassProxy<TClass>(ProxyGenerationOptions options, object[] constructorArguments, params IInterceptor[] interceptors);
1054+
public TClass CreateClassProxy<TClass>(ProxyGenerationOptions options, object[] constructorArguments, params IInterceptor[] interceptors) where TClass : class;
10551055

10561056
/// <summary>
10571057
/// Creates proxy object intercepting calls to virtual members of type <typeparamref name = "TClass" /> on newly created instance of that type with given <paramref
@@ -1073,6 +1073,6 @@ object CreateClassProxy(Type classToProxy, Type[] additionalInterfacesToProxy,
10731073
/// This method uses <see cref = "IProxyBuilder" /> implementation to generate a proxy type.
10741074
/// As such caller should expect any type of exception that given <see cref = "IProxyBuilder" /> implementation may throw.
10751075
/// </remarks>
1076-
public TClass CreateClassProxy<TClass>(object[] constructorArguments, params IInterceptor[] interceptors);
1076+
public TClass CreateClassProxy<TClass>(object[] constructorArguments, params IInterceptor[] interceptors) where TClass : class;
10771077
}
10781078
}

0 commit comments

Comments
 (0)