Is this possible?
I have a binary that throws an access violation exception when instrumented.
I want to step through instrumented code, so I need to generate source code of the instrumented code.
Is there a way?
Thanks
...
I have a table (Projects) which is linked to projectVersions on projectID
projectVersions contains several columns on which I'd like to filter a returned project (and associated projectVersions) list. For example there is a "capacity" column and a "country" column. I am doing a filtered list of projects on one page and I'd like to inc...
So I'm just playing around with RX and learning it. I started playing with Events, and wanted to know how to subscribe to events, and process the results in batches asynchronously. Allow me to explain with code:
Simple class that raises events:
public class EventRaisingClass
{
public event EventHandler<SomeEventArgs> EventOccured;
...
I'm writing a simple extension method to perform an action on a control and all of its children, and I'm wondering if I have to worry about running into the same control twice.
Safe:
public static void Traverse(this Control control, Action<Control> action)
{
Traverse(control, action, new HashSet<control>());
}
private static void ...
I have a Silverlight app with two XAML Pages - MainPage and OtherPage
How can I add a reference to a page to open the Silverlight control to the specific page?
I have this
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
<param name="source" value="ClientBin/Test....
If I have a generic class:
public class MyClass<T>
{
public T Value;
}
I want to instantiate several items such as...
new MyClass<string>
new MyClass<int>
...and add them to a collection. How do I define the collection so that it can hold a list of generic types? I then want to iterate through the collection at some point, and u...
SELECT ISNULL(MAX(ColumnName) + 1, 1) AS ColumnName
FROM TableName
How to write this query in LINQ.Is there any way to convert sql to linq . i want a converter.
Above query works well but i want the same output on linq .How to ?
I know how to select max
var products = ((from p in db.TableName
select p...
Hi
I am developing an asp.net mvc 2 web application. My clients will most likely want a copy of my application to be hosted on their servers instead of me hosting it on my server for all clients.
However I see a problem with this because I was planning to use the .net 2.0 encryptor to encrypt my web.config to make it safer. I got to t...
I noticed that LINQ to Objects has a GroupBy method. In light of this, I was wondering if anyone can build a case for group list of objects in memory using LINQ vs having SQL Server perform the grouping?
...
I'm a Senior student in the process of building my portfolio by the time I graduate.
I'm already building a grading system for my University and I think this will look great and allow me to make some contacts within my city, but I'm looking for project ideas that prove to potential employers that I have a passion for programming.
What ...
Hello folks,
I'm having a problem that's been bugging me for a while.
I'm downloading files from a FTP server in .net, and randomly (and I insist, it is completely random), I get the following error:
System.Net.WebException: The remote server returned an error: (550) File unavailable (e.g., file not found, no access).
Our code in .ne...
Possible Duplicate:
Why are Exceptions not Checked in .NET?
If I remember correctly, Java enforces catching and handling any exceptions a called method may throw. Why doesn't .NET do the same?
...
I implemented tinyMCE to fulfill the "we need a rich text editor" requirement but when posting the form to the controller I get the expected "A potentially dangerous Request.Form value was detected from the client" error, in .net 3.5 we could just use [ValidateInput=false] in the action and go on with it, but now we also have to set requ...
Hi everybody,
I am trying to install the Dokan driver on my machine. I have downloaded the source code and have installed the Windows Drivers Kit. Using the build environment, I built and copied dokan.sys to C:\WINDOWS\system32\drivers, as well as dokan.dll, dokanctl.exe & mounter.exe to C:\WINDOWS\system32. I then try to run dokanctl....
I need to create an application that can have numerous documents open on several (between 2 and 6) monitors. The current version of the application uses a traditional MDI interface which does not work well with multiple monitors. I am thinking of making an interface similar to GIMP/Delphi 7 which has a main program toolbar and all other ...
Is it possible to create an extension method that returns the instance that is invoking the extension method?
I would like to have an extension method for anything that inherits from ICollection<T>, returns the object. Much like how jQuery always returns the jquery object.
public static object AddItem<T>(this ICollection<T> collection...
I am looking for a way to split PascalCase strings, e.g. "MyString", into separate words - "My", "String". Another user posed the question for bash, but I want to know how to do it with general regular expressions or at least in .NET.
Bonus if you can find a way to also split (and optionally capitalize) camelCase strings: e.g. "myString...
We're looking for a .NET wrapper for libVLC that will let us put streaming video displays in Windows Forms applications, and record the displayed video. We have existing apps that use an old .NET wrapper library for libVLC, but that library is no longer being supported by its developer, so we'd like to move to a new one.
Here are the c...
We have .bmp files (2M per file) which are stored in Sybase as long binary. we need to retrieve them from database and send to client for display via WebService.
Do we have to do some encoding to pack data before we put them onto the internet?
how to choose the encoding?
thanks,
...
I want a simple, interactive way to demo middle-tier features of my app which have not had a UI created yet. I want an interactive console.
When my application (WPF but it shouldn't matter) boots up I would like to also start a console window. This window should run powershell (or ruby, or python, but preferably powershell) and have i...