Decompiling .NET 2.0 binary
Is it possible to decompile a .NET 2.0 binary file (*.exe) to some sort of readable code? Or if not, just extract some information from it (for example method names, debugging information, etc.)? ...
Is it possible to decompile a .NET 2.0 binary file (*.exe) to some sort of readable code? Or if not, just extract some information from it (for example method names, debugging information, etc.)? ...
Hi all, within my .net domain object I am tracking each state transition. This is done by putting the state set into a state history collection. So later on, one can see an desc ordered list to find out which state was changed at what time. So there is a method like this: private void SetState(RequestState state) { var stateHistor...
I'm given the task of programming a website and I'm new to website creation. The website has to show an overview of trips and allow navigation to a single trips detail and this trips places. Our databaselayer will return a list with trips and all its places: class Trip { List<Place> places; } List<Trip> trip = datalayer.GetTrips(); S...
Is .NET Compact a perfect subset of .NET? Can I write a Windows Forms application and run it on .NET Compact, assuming that I took into account screen size and other limitations and avoid classes and methods not supported by .NET Compact or is .NET Compact a different and incompatible GUI framework? ...
I am trying to figure out a way to parse an xml tag where content is passed in with CDATA tags for some input, but not for all. For example, the following is sample content I would receive for data which contains CDATA tags. But there is some other scenarios where the CDATA tags are ommited. <Data><![CDATA[ <h1>CHAPTER 2<br/> EDUCATION...
I have a class that maintains a private Dictionary instance that caches some data. The class writes to the dictionary from multiple threads using a ReaderWriterLockSlim. I want to expose the dictionary's values outside the class. What is a thread-safe way of doing that? Right now, I have the following: public ReadOnlyCollection<MyCla...
System.Diagnostics.Process exposes a StreamWriter named StandardInput, which accepts only characters as far as I know. But I need to send keystrokes as well, and some keystrokes don't map well to characters. What should I do? ...
I'm writing a synchronous method that calls an asynchronous method on another server. The server's method calls a callback when it's done, and in case of error one of the callback's arguments contains an exception. I'd like to throw an exception from my method, with the server's exception as its InnerException. However, in order to ca...
I need an AI Bot for a chat service which can imitate a human. I have tried ALICE with AIMLBot(C#) as a front-end but it didn't work very well. Are there any good bots you would recommend? ...
The title says it all. I have a composite key in a database table / NHibernate entity. Can I somehow use the .Get method to grab a specific entity or do I have to use HQL / Criteria due to the composite key? ...
In a system I'm currently working on, I have many components which are defined as interfaces and base classes. Each part of the system has some specific points where they interact with other parts of the system. For example, the data readying component readies some data which eventually needs to go to the data processing portion, the...
Scenario I have a c# winforms application with a gridview. The gridview datasource is populated by a dataset. The contents of this dataset get updated every few seconds, and there are not always the same number of items in the dataset etc. The dataset actually gets populated (or needs to get populated) by multiple other datasets being p...
I was writing a simple for loop recently and got some unexpected behavior: for(double x = 0.0; x <= 1.0; x += 0.05) { Console.WriteLine(x.ToString()); } This is the output: 0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5 0.55 0.6 0.65 0.7 0.75 0.8 0.85 0.9 0.95 Notice that 1 doesn't appear even though the condition for continuin...
I am wondering what solutions out there for populating data for a template. Right now we store email templates in the datatabse with place holders in them. When we need to send out the emails, we would replace the actual value in for the place holder. This solution works, except it is very hard to debug. Thanks in advance. Angela ...
Does C# have a way to temporarily change the value of a variable in a specific scope and revert it back automatically at the end of the scope/block? For instance (not real code): bool UpdateOnInput = true; using (UpdateOnInput = false) { //Doing my changes without notifying anyone Console.WriteLine (UpdateOnInput) // prints fa...
Is it possible to take a page object, or maybe just a single ASP.NET control, and render it in a desktop application in some way? For example, Visual Studio, being a desktop application renders ASP.NET controls in the design surface. I want to do something similar. Edit: I am brainstorming on how to make a very simple designer for a ...
I have two tables, Quote and Agent. Quote has a column called AgentID that is a foreign key in Agent. When adding the tables to my model in the VS the Quote class has a reference to Agent. When attempting to add a new quote I create a new quote entity and set the Agent like this: entity.Agent = (from x in entities.AgentEntities ...
hello, I need a simple, lightweight authentication and data transfer mechanism (on .NET platform). I have looked a WCF and SOAP etc. they all seem too top-heavy and complicated for my needs. I need something simple and straight-forward leading me to a chat protocol like Jabber. My data-transfer is mostly small - example: user searches fo...
First, I apologize if this is a repeat of a previous question; I did some searching on SO and couldn't quite find what I was looking for in the search results. I'm a Coldfusion Web Developer and I'm finding that in my local area, work for CF Devs has become extremely scarce. There were a handful of companies that were Coldfusion houses...
I am trying to get a chm file to open to a specific topic using c# code. I have tried using Help.ShowHelp(this, path, HelpNavigator.Topic, "TopicTitle"); but it doesn't find the page. I must not be keying in the Topic title correctly. Is there a way that I can programatically retrieve all of the topics from a chm file so that I can ...