AspectSharp.Example.Aop.Interceptors.HashcodeDefaultValueInterceptor.Invoke C# (CSharp) Method

Invoke() public method

public Invoke ( IMethodInvocation invocation ) : object
invocation IMethodInvocation
return object
		public object Invoke(IMethodInvocation invocation)
		{
			object retVal = invocation.Proceed();
			
			if (retVal == null)
			{
				retVal = "Whoops! no value setted for this key!";
			}

			return retVal;
		}
	}
HashcodeDefaultValueInterceptor