Exemplo n.º 1
0
 public Bit(string text, MismatchType mismatchType)
 {
     this.m_text = text;
     m_text = m_text.Replace("<<>", "<");
     m_text = m_text.Replace("<>>", ">");
     
     this.mismatchType = mismatchType;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ResourceMismatchException"/> class.
 /// </summary>
 /// <param name="request">The request.</param>
 /// <param name="resource">The resource.</param>
 /// <param name="type">The type (release or unreserve).</param>
 public ResourceMismatchException(IResourceRequest request, IResource resource, MismatchType type) :
     base("Trying to release or unreserve a resource with a ResourceRequest that doesn't own it.", request, resource, resource.Manager)
 {
     Operation = type;
 }