Bamboo.Prevalence.Implementation.PrevalentSystemProxy.IsCommand C# (CSharp) Method

IsCommand() private method

private IsCommand ( MethodBase method ) : bool
method System.Reflection.MethodBase
return bool
		private bool IsCommand(MethodBase method)
		{
			if (method.IsSpecialName)
			{
				if (method.Name.StartsWith("set_"))
				{
					return true;
				}

				// only property sets are commands
				return false;
			}

			// TODO: should we really consider any public
			// method a command?
			// wouldn't it be better to consider only the methods
			// declared by the type:
			// return method.DeclaringType == _system.GetType()
			return true;
		}