public static void CheckForDisposableParameters(OperationDescription operation, Type type) { if (type == null) { operation.HasNoDisposableParameters = true; } else { operation.HasNoDisposableParameters = !ServiceReflector.IsParameterDisposable(type); } }
public static void CheckForDisposableParameters(OperationDescription operation, System.Type[] types) { operation.HasNoDisposableParameters = true; foreach (System.Type type in types) { if (ServiceReflector.IsParameterDisposable(type)) { operation.HasNoDisposableParameters = false; return; } } }
public static void CheckForDisposableParameters(OperationDescription operation, Type[] types) { Fx.Assert(types != null, "Argument cannot be null!"); operation.HasNoDisposableParameters = true; foreach (Type type in types) { if (ServiceReflector.IsParameterDisposable(type)) { operation.HasNoDisposableParameters = false; break; } } }