Click here to Skip to main content
15,887,214 members
Home / Discussions / C#
   

C#

 
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 
QuestionProfile.FullName Issue Pin
laziale13-Dec-08 7:05
laziale13-Dec-08 7:05 
AnswerRe: Profile.FullName Issue Pin
Lev Danielyan13-Dec-08 8:43
Lev Danielyan13-Dec-08 8:43 
QuestionHow can a 32-bit process gain access to the 64-bit values under HKLM\SOFTWARE? [modified] Pin
dandy7213-Dec-08 5:39
dandy7213-Dec-08 5:39 
AnswerRe: How can a 32-bit process gain access to the 64-bit values under HKLM\SOFTWARE? Pin
Richard Andrew x6413-Dec-08 10:45
professionalRichard Andrew x6413-Dec-08 10:45 
AnswerRe: How can a 32-bit process gain access to the 64-bit values under HKLM\SOFTWARE? Pin
Richard Andrew x6413-Dec-08 10:46
professionalRichard Andrew x6413-Dec-08 10:46 
GeneralRe: How can a 32-bit process gain access to the 64-bit values under HKLM\SOFTWARE? Pin
dandy7214-Dec-08 7:10
dandy7214-Dec-08 7:10 
Questioncascade-style distribution of files over a LAN Pin
Bartosz Bien13-Dec-08 5:04
Bartosz Bien13-Dec-08 5:04 
AnswerRe: cascade-style distribution of files over a LAN Pin
Dave Kreskowiak13-Dec-08 5:44
mveDave Kreskowiak13-Dec-08 5:44 

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.