Calyptus.Mvc.ContentDispositionAttribute.Initialize C# (CSharp) Method

Initialize() public method

public Initialize ( ParameterInfo parameter ) : void
parameter System.Reflection.ParameterInfo
return void
		public void Initialize(ParameterInfo parameter)
		{
			bindingType = parameter.ParameterType.IsByRef ? parameter.ParameterType.GetElementType() : parameter.ParameterType;
			if (param == null && bindingType != typeof(string)) throw new BindingException(String.Format("Invalid type. {1} can't bind to type '{0}' without param. Try using string.", parameter.ParameterType.Name, GetType().Name));
		}

Same methods

ContentDispositionAttribute::Initialize ( PropertyInfo property ) : void