Click here to Skip to main content
15,895,192 members
Home / Discussions / C#
   

C#

 
Questionautocomplete in datagraid Pin
ahmed eldeghedy13-Dec-08 21:35
professionalahmed eldeghedy13-Dec-08 21:35 
AnswerRe: autocomplete in datagraid Pin
Christian Graus13-Dec-08 22:26
protectorChristian Graus13-Dec-08 22:26 
QuestionToolStripMenuItem Object Pin
Zeyad Jalil13-Dec-08 20:21
professionalZeyad Jalil13-Dec-08 20:21 
AnswerRe: ToolStripMenuItem Object Pin
Lev Danielyan13-Dec-08 20:26
Lev Danielyan13-Dec-08 20:26 
Questionshow string Property of a custom class in DGV Pin
Xmen Real 13-Dec-08 16:41
professional Xmen Real 13-Dec-08 16:41 
AnswerRe: show string Property of a custom class in DGV Pin
Tony Pottier13-Dec-08 17:24
Tony Pottier13-Dec-08 17:24 
GeneralRe: show string Property of a custom class in DGV Pin
Xmen Real 13-Dec-08 19:30
professional Xmen Real 13-Dec-08 19:30 
GeneralRe: show string Property of a custom class in DGV [modified] Pin
Xmen Real 13-Dec-08 19:52
professional Xmen Real 13-Dec-08 19:52 
QuestionAvoid #Error Label on reportviewer while getting null value Pin
vbexpert113-Dec-08 9:13
vbexpert113-Dec-08 9:13 
AnswerRe: Avoid #Error Label on reportviewer while getting null value Pin
Christian Graus13-Dec-08 11:05
protectorChristian Graus13-Dec-08 11:05 
AnswerRe: Avoid #Error Label on reportviewer while getting null value Pin
Mycroft Holmes13-Dec-08 20:22
professionalMycroft Holmes13-Dec-08 20:22 
GeneralRe: Avoid #Error Label on reportviewer while getting null value Pin
vbexpert113-Dec-08 20:35
vbexpert113-Dec-08 20:35 
GeneralRe: Avoid #Error Label on reportviewer while getting null value Pin
Mycroft Holmes13-Dec-08 20:55
professionalMycroft Holmes13-Dec-08 20:55 
GeneralRe: Avoid #Error Label on reportviewer while getting null value Pin
vbexpert113-Dec-08 22:05
vbexpert113-Dec-08 22:05 
QuestionxUnit 1.1 Pin
Jammer13-Dec-08 8:51
Jammer13-Dec-08 8:51 
AnswerRe: xUnit 1.1 Pin
Pete O'Hanlon14-Dec-08 10:32
mvePete O'Hanlon14-Dec-08 10:32 
I believe that xUnit recommends using Dispose, so your test looks like this:
[TestFixture]
public class MyTestClass : IDisposable
{
  public MyTestClass()
  {
  }

  private void DoMyTeardown()
  {
    // Do Something..
  }
  public void Dispose()
  {
    DoMyTeardown();
    Dispose(true);
  }
  private bool _disposed = false;
  protected void Dispose(bool dispose)
  {
    if (dispose)
    {
      if (!_disposed)
      {
        _disposed = true;
      }
    }
    GC.SuppressFinalize(this);
  }
}
Then, your calling code does this:
using (MyTestClass test = new MyTestClass())
{
  // Call test method...
}//When you get here, the Dispose method is automatically called, and the call to DoMyTeardown is executed.


"WPF has many lovers. It's a veritable porn star!" - Josh Smith

My blog | My articles | MoXAML PowerToys



QuestionNeed to 'hire' a programmer for a very small program. 75 % complete already Pin
Nomadico13-Dec-08 7:34
Nomadico13-Dec-08 7:34 
AnswerRe: Need to 'hire' a programmer for a very small program. 75 % complete already Pin
Expert Coming13-Dec-08 7:58
Expert Coming13-Dec-08 7:58 
AnswerRe: Need to 'hire' a programmer for a very small program. 75 % complete already Pin
Christian Graus13-Dec-08 10:18
protectorChristian Graus13-Dec-08 10:18 
AnswerRe: Need to 'hire' a programmer for a very small program. 75 % complete already Pin
Colin Angus Mackay13-Dec-08 11:10
Colin Angus Mackay13-Dec-08 11:10 
GeneralRe: Need to 'hire' a programmer for a very small program. 75 % complete already Pin
Christian Graus13-Dec-08 11:37
protectorChristian Graus13-Dec-08 11:37 
GeneralRe: Need to 'hire' a programmer for a very small program. 75 % complete already Pin
Guffa13-Dec-08 16:01
Guffa13-Dec-08 16:01 
GeneralRe: Need to 'hire' a programmer for a very small program. 75 % complete already Pin
Xmen Real 13-Dec-08 16:31
professional Xmen Real 13-Dec-08 16:31 
AnswerRe: Need to 'hire' a programmer for a very small program. 75 % complete already Pin
Mycroft Holmes13-Dec-08 20:29
professionalMycroft Holmes13-Dec-08 20:29 
GeneralRe: Need to 'hire' a programmer for a very small program. 75 % complete already Pin
Pete O'Hanlon14-Dec-08 8:29
mvePete O'Hanlon14-Dec-08 8:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.