예제 #1
0
 /// <summary>
 /// Create a new profile, with the given steps.
 /// </summary>
 /// <param name="profile">The steps to perform</param>
 public Profile(ProfileStep[] profile)
 {
     m_profile = profile;
 }
예제 #2
0
 /// <summary>
 /// Create an instance.
 /// </summary>
 /// <param name="step">In which step did this occur?</param>
 /// <param name="c">The offending character</param>
 public ProhibitedCharacterException(ProfileStep step, char c)
     : base(string.Format("Step {0} prohibits string (character U+{1:x04}).", step.Name, (ushort) c))
 {
     InvalidChar = c;
 }