Click here to Skip to main content
15,902,636 members
Home / Discussions / C#
   

C#

 
GeneralRe: combobox in datagrid Pin
Christian Graus15-Apr-08 0:14
protectorChristian Graus15-Apr-08 0:14 
GeneralRe: combobox in datagrid Pin
sarilee15-Apr-08 0:48
sarilee15-Apr-08 0:48 
GeneralRe: combobox in datagrid Pin
Christian Graus15-Apr-08 0:50
protectorChristian Graus15-Apr-08 0:50 
GeneralRe: combobox in datagrid Pin
sarilee15-Apr-08 1:15
sarilee15-Apr-08 1:15 
Generaltemplates in datagrid Pin
sarilee14-Apr-08 23:45
sarilee14-Apr-08 23:45 
GeneralRe: templates in datagrid Pin
Christian Graus14-Apr-08 23:53
protectorChristian Graus14-Apr-08 23:53 
GeneralStreamWriter Pin
George_George14-Apr-08 23:44
George_George14-Apr-08 23:44 
GeneralRe: StreamWriter Pin
N a v a n e e t h15-Apr-08 0:25
N a v a n e e t h15-Apr-08 0:25 
George_George wrote:
I must make Foo implements IDisposable and in the Dispose method of class Foo, invoke Dispose method of the StreamWriter object instance to release resource properly


Yes that's correct. But the pattern you used to implement IDisposable is not correct. You may check this[^] to get an idea for implementing the same.

If you are using StreamWriter instance only in a method, declare it inside the method and wrap it in a using block, hence you can avoid implementing IDisposable in class Foo.

All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia

How to use google | Ask smart questions

GeneralRe: StreamWriter Pin
George_George15-Apr-08 2:55
George_George15-Apr-08 2:55 
GeneralRe: StreamWriter Pin
N a v a n e e t h15-Apr-08 20:36
N a v a n e e t h15-Apr-08 20:36 
GeneralRe: StreamWriter Pin
George_George16-Apr-08 0:05
George_George16-Apr-08 0:05 
GeneralRe: StreamWriter Pin
N a v a n e e t h16-Apr-08 2:00
N a v a n e e t h16-Apr-08 2:00 
GeneralRe: StreamWriter Pin
George_George16-Apr-08 2:22
George_George16-Apr-08 2:22 
GeneralRe: StreamWriter Pin
N a v a n e e t h16-Apr-08 3:01
N a v a n e e t h16-Apr-08 3:01 
GeneralRe: StreamWriter Pin
George_George16-Apr-08 3:42
George_George16-Apr-08 3:42 
GeneralRe: StreamWriter Pin
Gareth H15-Apr-08 0:26
Gareth H15-Apr-08 0:26 
GeneralRe: StreamWriter Pin
George_George15-Apr-08 2:54
George_George15-Apr-08 2:54 
QuestionHow I can paly Video files with C# & DirextX? Pin
Mohammad Dayyan14-Apr-08 23:43
Mohammad Dayyan14-Apr-08 23:43 
GeneralRe: How I can paly Video files with C# & DirextX? Pin
Christian Graus14-Apr-08 23:54
protectorChristian Graus14-Apr-08 23:54 
GeneralRe: How I can paly Video files with C# & DirextX? Pin
Mohammad Dayyan15-Apr-08 10:36
Mohammad Dayyan15-Apr-08 10:36 
Generalinteger type in C# Pin
George_George14-Apr-08 23:33
George_George14-Apr-08 23:33 
GeneralRe: integer type in C# Pin
N a v a n e e t h15-Apr-08 0:32
N a v a n e e t h15-Apr-08 0:32 
GeneralRe: integer type in C# Pin
George_George15-Apr-08 2:56
George_George15-Apr-08 2:56 
GeneralRe: integer type in C# Pin
Gareth H15-Apr-08 0:34
Gareth H15-Apr-08 0:34 
GeneralRe: integer type in C# Pin
George_George15-Apr-08 2:56
George_George15-Apr-08 2:56 

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.