Calyptus.Mvc.ContentTypeAttribute.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 (bindingType != typeof(string)) throw new BindingException(String.Format("Invalid path type. {1} can't bind to type '{0}'. Try using string.", parameter.ParameterType.Name, GetType().Name));
		}

Same methods

ContentTypeAttribute::Initialize ( PropertyInfo property ) : void