python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
C# Combining using statement with IAsyncReader
I'm looking to combine an async fill operation with disposable.
class G
{
SqlConnection connection
SqlCommand command;
IAyncResult Begin(string connectionString)
{
this.connecti...
heyNow
Votes: 0
Answers: 0
IDisposable Pattern - Is Dispose() invoked when an object is stored in a Thread local data?
All,
I have a class FileLogger that implements IDisposable pattern. The instance of this class is stored in current thread's local data:
LocalDataStoreSlot s;
s = Thread.GetNamedDataSlot("logger&...
ActiveX
Votes: 0
Answers: 1
C# implementing IDisposable with GCHandle-Member
What is the correct way to implement the IDisposable-Pattern, given that the implementing class contains a GCHandle-Member?
I came up with this, but it causes my application to leak memory:
public cla...
sir_photch
Votes: 0
Answers: 1
Prevent object dispose inside using block
Workflow:
I have a winform app with two forms, in the 1st form I query a liteDB and it manipulates an IEnumerable<T> instance inside a using block with retrieved data.
IEnumerable<student>...
Shahaboddin
Votes: 0
Answers: 2