コード例 #1
0
ファイル: ProhibitStep.cs プロジェクト: cxz456999/NATP
 /// <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;
 }
コード例 #2
0
ファイル: ProhibitStep.cs プロジェクト: sq5gvm/JabberNet-2010
 /// <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;
 }
コード例 #3
0
ファイル: Profile.cs プロジェクト: sq5gvm/JabberNet-2010
 /// <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;
 }