コード例 #1
0
ファイル: Profile.cs プロジェクト: csfmeridian/jabber-net
 /// <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;
 }