Click here to Skip to main content
15,912,837 members
Home / Discussions / C#
   

C#

 
AnswerRe: Getting the type of control Pin
N a v a n e e t h16-Jun-08 21:03
N a v a n e e t h16-Jun-08 21:03 
GeneralRe: Getting the type of control Pin
jonhbt16-Jun-08 21:26
jonhbt16-Jun-08 21:26 
QuestionHow to retrieve file icon in a web application program? Pin
grewin16-Jun-08 20:15
grewin16-Jun-08 20:15 
AnswerRe: How to retrieve file icon in a web application program? Pin
sunspeed16-Jun-08 20:51
sunspeed16-Jun-08 20:51 
GeneralRe: How to retrieve file icon in a web application program? Pin
grewin16-Jun-08 22:21
grewin16-Jun-08 22:21 
Questionvote rating concept using star image in .net with c# Pin
sugunavathysubramanian16-Jun-08 20:10
sugunavathysubramanian16-Jun-08 20:10 
AnswerRe: vote rating concept using star image in .net with c# Pin
Ashfield16-Jun-08 21:17
Ashfield16-Jun-08 21:17 
QuestionTypes that own disposable fields should be disposable Pin
George_George16-Jun-08 19:58
George_George16-Jun-08 19:58 
Hello everyone,


For this best practices rule,

http://msdn.microsoft.com/en-us/ms182172.aspx

What are the benefits of following this rule even if I am not wrapping an unmanaged resource, like FileStream in the sample in the page.

I think it is fine if the class does not implement IDisposable, since FileStream could be disposed (to release the native file handle) since it has its own Dispose method. Any ideas?


thanks in advance,
George
AnswerRe: Types that own disposable fields should be disposable Pin
N a v a n e e t h16-Jun-08 20:56
N a v a n e e t h16-Jun-08 20:56 
GeneralRe: Types that own disposable fields should be disposable Pin
George_George16-Jun-08 21:04
George_George16-Jun-08 21:04 
GeneralRe: Types that own disposable fields should be disposable Pin
N a v a n e e t h16-Jun-08 21:27
N a v a n e e t h16-Jun-08 21:27 
GeneralRe: Types that own disposable fields should be disposable Pin
George_George16-Jun-08 21:40
George_George16-Jun-08 21:40 
GeneralRe: Types that own disposable fields should be disposable Pin
N a v a n e e t h16-Jun-08 22:28
N a v a n e e t h16-Jun-08 22:28 
GeneralRe: Types that own disposable fields should be disposable Pin
George_George16-Jun-08 23:08
George_George16-Jun-08 23:08 
GeneralRe: Types that own disposable fields should be disposable Pin
N a v a n e e t h16-Jun-08 23:12
N a v a n e e t h16-Jun-08 23:12 
GeneralRe: Types that own disposable fields should be disposable Pin
George_George16-Jun-08 23:16
George_George16-Jun-08 23:16 
QuestionAssign event to a particular combo in a DataGridView Pin
Anoop Unnikrishnan16-Jun-08 19:58
Anoop Unnikrishnan16-Jun-08 19:58 
AnswerRe: Assign event to a particular combo in a DataGridView Pin
N a v a n e e t h16-Jun-08 20:52
N a v a n e e t h16-Jun-08 20:52 
Questionwhy should we assigne an object to null? Pin
fateme_developer16-Jun-08 19:23
fateme_developer16-Jun-08 19:23 
AnswerRe: why should we assigne an object to null? Pin
arslanjatt16-Jun-08 19:35
arslanjatt16-Jun-08 19:35 
GeneralRe: why should we assigne an object to null? Pin
N a v a n e e t h16-Jun-08 20:48
N a v a n e e t h16-Jun-08 20:48 
GeneralRe: why should we assigne an object to null? Pin
MarkB77716-Jun-08 21:03
MarkB77716-Jun-08 21:03 
GeneralRe: why should we assigne an object to null? Pin
N a v a n e e t h16-Jun-08 21:16
N a v a n e e t h16-Jun-08 21:16 
GeneralRe: why should we assigne an object to null? Pin
Alan Balkany17-Jun-08 4:26
Alan Balkany17-Jun-08 4:26 
GeneralRe: why should we assigne an object to null? Pin
fateme_developer18-Jun-08 21:14
fateme_developer18-Jun-08 21:14 

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.