Castle.Core.ConstructorCandidateCollection.Add C# (CSharp) Method

Add() public method

Adds the specified candidate.
public Add ( ConstructorCandidate candidate ) : void
candidate ConstructorCandidate The candidate.
return void
		public void Add(ConstructorCandidate candidate)
		{
			if (fewerArgumentsCandidate == null)
			{
				fewerArgumentsCandidate = candidate;
			}
			else
			{
				if (candidate.Constructor.GetParameters().Length <
				    fewerArgumentsCandidate.Constructor.GetParameters().Length)
				{
					fewerArgumentsCandidate = candidate;
				}
			}

			InnerList.Add(candidate);
		}
ConstructorCandidateCollection