I have a "MustInherit" .NET class which declares a constructor with an integer parameter. However, Visual Studio gives me an error when I create any derived class stating that there is no constructor that can be called without any arguments. Is it possible to inherit the constructor with arguments?
Right now, I have to use
Public Sub N...
I understand the basics of Rx. Where I'm struggling is how you would actually use this beyond academic examples? What are some common, simple real-world scenarios where Rx is a much better solution than what we have today in .NET?
...
Why isnt HashAlgorithm.Dispose public?
void IDisposable.Dispose()
{
this.Dispose(true);
GC.SuppressFinalize(this);
}
I understand that it is and explicit interface implementation and can still be called. I am trying to work out what the reasoning is behind it.
...
I have a dependency property and a callback.
public static readonly DependencyProperty IsBusyProperty =
DependencyProperty.Register("IsBusy", typeof(bool),
typeof(TabHost), new PropertyMetadata(false, IsBusyPropertyChangedCallback));
private static void IsBusyPropertyChangedCallback(DependencyObject o,
...
I'm trying to burn DVD/CD through frontend C# code...
i have used IMAPI2 for buring CD/DVD in windows XP..but it is giving me unhandled exception... as:-
System.InvalidCastException: Unable to cast COM object of type 'IMAPI2.Interop.MsftFileSystemImageClass' to interface type 'IMAPI2.Interop.MsftFileSystemImage'. This operation failed...
im populating the data in the combo box using dataset tables...with some table name..now i want to clear those entries or data populated in the combobox every time when the button is clicked...so that new entries can be done.... is there any way to clear the comobo box values??
...
Hi people,
I am thinking to create a filter object which filters and delete everything like html tags from a context. But I want it to be independent which means the design pattern I can apply will help me to add more filters in the future without effecting the current codes. I thought Abstract Factory but it seems it ain't gonna work o...
Hello,
I have pretty simple case which I started solving using foreach(), but then I thought I could do It using Linq
Basically I have IList that contains PaymentTransaction objects and there are 2 properties Dealer and Amount
I want to GroupBy() by Dealer and Sum() bv amount.
I tried to accomplish this using following code, but unfo...
i use such code, but it renders with error <li class="dd0"><div id="dt1"<a href="http://localhost:1675/Category/29-books.aspx">Books</a></div></li>
there is no > in opening tag div. what the problem?
writer.WriteBeginTag("li");
//writer.WriteAttribute("class", this.CssClass);
writer....
I am trying to add a Database Table field into crystal report at run time.
I am creating an object of crystal report viewer and trying to add dynamic field into it.
After googling i found that i need to create an object of crystalReports.rpt file, which i was disable to.
Refrence that I followed
Please Provide me some solution.
...
I was trying to divide (float)200 / (float)500 but the result is 0.0. Why is this so and how can we have 0.4 as the result? Thanks a lot.
...
Hi All,
I am looking after fixing a bug and there I find this expression:-
directoryPath = Regex.Replace(directoryPath, "[^\\w\\.@-]", "");
but as a result of the expression all the high ascii characters in directory path are messed up, I am not good at regex and dont know about it but for now I have to fix the issue .
Can someone ...
Hi
I am trying to find a tool that shows a dependency tree for method calls from an assembly. If the method call chain goes across assemblies, this would also be shown
I have looked at dependency walker and Reflector for .Net, these tools show assembly dependencies but I want drill down one more level to get the assembly method call dep...
Hello, I found an example for async ftp upload on msdn which does the following (snippet):
// Asynchronously get the stream for the file contents.
request.BeginGetRequestStream(
new AsyncCallback (EndGetStreamCallback),
state
);
// Block the current thread until all operations ar...
I am loading a bunch of rows into MySql in C#. In MS Sql I can feed a DataReader to SqlBulkCopy, but the MySqlBulkCopy only presents itself as a bootstrap for a bulk load from file.
So, my current solution is using a prepared command in a transacted loop.
Is there a faster way to accomplish bulk loading of MySql using a DataReader sour...
Hello,
In previous series:
http://stackoverflow.com/questions/2543648/outofmemoryexception-stack-size-is-huge-large-number-of-threads
I have a .net windows service that consumes a lot of memory. The GC heap is not big. Also the stack size is not big. What is big is something called a private data. Also I can see in task manager that m...
Hello there,
i have written a simple cgi python script which looks like this
#!c:/Python25/python.exe -u
import cgi
import os
def main():
print "Content-type: text/html\n"
form = cgi.FieldStorage()
print form["firstname"].value
os.execvp("D:\\path\\to\\my\\consolapp.exe", [""])
main()
As you can se i'd like to st...
I have a RESTful API containing a URI of /UserService/Register. /UserService/Register takes an XML request such as:
<UserRegistrationRequest>
<Password>password</Password>
<Profile>
<User>
<UserName>username</UserName>
</User>
</Profile>
</UserRegistrationRequest>
I have the following questions given the above sce...
Hi All ,
I have a doubt i use the following piece of code get data from a SQLlite data base and Load it into a data table
SQLiteConnection cnn = new SQLiteConnection("Data Source=" + path);
cnn.Open();
SQLiteCommand mycommand = new SQLiteCommand(cnn);
string sql = "select Company,Phone,Email,Address,City,State,Zip,Country,Fax,Web fr...
I am getting the following failure message when i build on the below two lines
http://www.freeimagehosting.net/][img]http://www.freeimagehosting.net/uploads/eb92ef98ac.jpg
Exceptions = message.Substring(trav + 1, expdiff - 1);
ExceptionList.Add(Exceptions);
...