I probably won't be able to explain this well enough, but here it goes...
I have a table similar to this:
Id | Foreign_Key_Id | A_Number | Some_Other_Info
1 1 100 Red
2 1 200 Blue
3 1 300 Orange
4 2 100 Green
5 2 ...
What's the easiest/straight-forward way of setting a default value for a C# public property?
// how do I set a default for this?
public string MyProperty { get; set; }
Please don't suggest that I use a private property & implement the get/set public properties. Trying to keep this concise, and don't want to get into an argument abou...
In the past I had quite some reusable code in my project which I would like to put inside a custom class library project so other projects can reuse it. There is only just one piece of code which needs configuration in code which is project dependent.
How can I inject a method to be executed in my project inside a method of the class li...
I'm working on a project that would require me to write my own email server. I was wondering if anyone had any good suggestions for an open source email server written in .NET that I could use as a starting point.
Bonus points if it has something already built in for sending text messages.
...
I have a Visual Studio solution, and this solution contains a few projects. Can I build all the projects from this solution into one dll?
...
Can someone point me to an example of building a simple hosted language using the DLR? My needs are modest, basically I just want to be able to evaluate simple case-insensitive expressions.
...
Hi,
i want to create a wrapper class for specific WMI functions that affect Bitlocker functionality. The first step is to get all the Bitlocker volumes of a machine so I created a Console Application and did this:
private static ManagementClass management;
private static ManagementObjectCollection Volumes = null;
static void Ma...
I need to design a windows application that will reside within an organization's intranet. The application will be deployed on a user's machine and the user will be generating output within an XML file that has a predefined schema. This XML will be written out to a networked folder that will be accessible by other users. These files are ...
Here's my current problem:
I have a data grid with 4 columns in it: Year One by Index, Year One by Percentage, Year Two+ by Index, and Year Two+ by Percentage. I want my data grid to make these columns mutually exclusive with its counterpart column.
So for example, if I type in a number for Year One by Percentage I shouldn't be allowed...
Possible Duplicate:
.NET must-have development tools
What are Indispensable tools for any .net developer ( all types of projects - Web, Desktop, phone, gaming device, etc) ?
...
Hey, All:
I've been looking for a free library/source code to format SQL queries, preferably in .NET, for quite a while. Even after searching some of the responses here on SO, I'm almost at the point where I'm willing to believe that nothing like this exists.
The closest thing I've found, a project called sqlformat, does not seem to b...
Is it possible to change the target framework to .net 4.0 in an application originally started in Silverlight 3? I have upgraded the Silverlight target to Silverlight 4 with no problem, but it seems that I am stuck with using the .net framework 3.5 in my actual C# code. (I'm trying to use threading tasks if that is any help)
I am usin...
I have written a tool that is run on the command line.
I can test it on the command line on my machine, and it works fine.
I then remote into the target server machine and run it on the command line there, and it still works.
However...this tool needs to remain running (its a monitoring tool).
I can't leave my remote session to that mac...
Hello,
I'm looking for a way of instrumenting a binary with my own functions. Basically, insert a call to a function before each method in the binary file.
Is it possible to do this with VSInstr.exe or another instrumentation tool for .NET?
If 1 is not possible: how can I implement my instrumentation tool? Are there any open source to...
Hi, is it possible to add include files within my custom t4 templates for the "Add Controller" dialog box?
I have tried doing:
<#@ include file="Helpers.tt" #>
This is what you would typically do in t4 but this does not seem to work.
Currently i have resorted to throwing all my helper functions in the footer of my templates but this...
Is there a way to determine with the FSW if a file or a directory has been deleted?
...
Hi Guys,
I am trying to build a .NET web application using SQL to query AS400 database. This is my first time encountering the AS400.
What do I have to install on my machine (or the AS400 server) in order to connect?
(IBM iSeries Access for Windows ??)
What are the components of the connection string?
Where can I find sample codes o...
I have an application that depends on a generic HttpHandler I created, and it works fine. The problem is that that there are many other applications under the same folder in IIS, and these other apps don't need to use and don't know (mustn't know) about this handler.
However, the Web.Config in which I register it ends up applying to all ...
I can't do this
interface InterfaceA
{
void MethodA();
}
class ClassA : InterfaceA
{
virtual void InterfaceA.MethodA()
// Error: The modifier 'virtual' is not valid for this item
{
}
}
Where the following works
class ClassA : InterfaceA
{
public virtual void MethodA()
{
}
}
Why? How to circumvent th...
I have a .NET 3.5 website that is uploading files to a SQL Server 2008 filestream. This all works great until I hit a certain file size and I unexpectedly get odd error returns in the browser.
In IE 7, if I upload a file with a size of about 100 meg, the browser returns after about 2 minutes with an error saying "Internet Explorer cann...