Could somebody point me at some info or pros/cons for using Windows 7 as a development machine? I'm just curious if I develop an application using Visual Studio 2003/5/8 on Windows 7 am i going to run into any issues deploying it to earlier versions of windows... xp/vista/windows server etc.
...
I can't get the selected value of a programmatically generated list of items:
Protected Sub ddlMMMYY2_PreRender(ByVal sender As Object, ByVal e
As System.EventArgs) Handles ddlMMMYY2.PreRender
If Not Page.IsPostBack Then
'Value= 08.2009 Text=Aug 09
Dim d As Date
d = Now
...
What is the most terse syntax to combine a check for some preconditions with a switch statement? Can I combine an if/else and switch statement?
if (!IsValid(text))
{
DoSomeLogging();
}
else
{
switch (text)
{
case "1":
DoSomething();
break;
case "2"
DoSomethingElse();
break;
default...
I'm reviewing an applications WCF security, and one of the bindings is a custom binding to achieve compression. The other bindings are standard wshttpBindings using message level encryption using a server certificate.
Custom binding
<customBinding>
<binding name="Elements.Foundation.CustomHttpCompression">
<security authentic...
Is the object initializer in c# 3.0 faster then the regular way ?
Is this faster
Object object = new Object
{
id = 1;
}
Then this ?
Object object = new Object()
object.id = 1;
...
In .Net I do this:
XmlNamespaceManager nsMan = new XmlNamespaceManager(xmlDoc.NameTable);
XmlNodeList nlImages = xmlDoc.SelectNodes("//v:imagedata", nsMan);
And I get this exception:
Namespace prefix 'v' is not defined.
But if I break the process and write this statement:
xmlDoc.NameTable.Get("v")
I get "v" out, so the namespace...
Seems like I can't do this:
private int[,] _table = new int[9, 9];
private ReadOnlyCollection<int[,]> _tableReadOnly = new ReadOnlyCollection<int[,]>(_table);
My idea is to have a property that let's the user read _table, but I don't want to let them change it, so I thought I could use ReadOnlyCollection for the matter.
...
I'm trying to construct a program that finds prime numbers between zero and the number input (a really long number); but the program isn't returning an output like I'm expecting it to:
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication16
{
class Program
{
...
We know that Linq-To-Sql InsertAllOnSubmit sucks in terms of performance, but using SqlBulkCopy for mass insertions requires some coding. Have anyone found any code/library that uses SqlBulkCopy in a InsertAllOnSubmit alternative implementation as simple to use as the original?
...
I'm finding this post very useful..
http://stackoverflow.com/questions/102084/hidden-features-of-vb-net
XML literals seem to be very powerful.. I'm wondering if there's any way to use them to view the results of a Web Service Call in .Net?
...
In the old days using MFC I could turn a property sheet into a wizard style dialog very easily and reuse my dialog templates.
I have a .NET form with a tab control that I would like to do the same with.
Is there an easy way to do this in .NET without having two copies of my controls?
...
I've been working in .NET for some time now, but occasionally I still get confused by a disparity between the framework and my prior experience in C++.
In .NET, all objects are either value types or reference types. Reference types are allocated on the heap while value types are allocated on the stack (in the current CLR implementation,...
public class SomeAttr: Attribute
{
void Method()
{
//here I want to know the type this instance of attribute is applied to
}
}
Thanks!!
...
Hi there
Is there a RSS library for .NET?
Thanks
...
Is there any LGPL or commercial-friendly licensed implementation of Jaro-Winkler distance in .NET?
...
I've got a CCNet build script that runs fine, with the exception of every now and then an MSBuild task times out. I've gone in and increased the timeouts from 600 to 900 to 1200. No dice, so I'm lead to believe it has something to do with what MSBuild is building; a big old web application project. I've looked on the google for any in...
I have a Matrix of images like this:
1 2 3 4 5 6 7 8 9 10
1 x 3 4 5 x 7 x 9 10
x x x x x x 7 8 9 x
…where "x" means no image.
I'm looking for a flexible .NET component that will allow me to have a UI to browse the images and move in the four possible directions: Right, Left, Up and Down.
Does anybody know of something like this?
...
Say you have a customer object and the "customer file" form that manipulates that object. Is the following a correct interpretation of MVC?
Customer - Model
CustomerForm.cs - Controller
CustomerForm.desinger.cs - View
Even though CustomerForm.cs and CustomerForm.designer.cs are partials of the same class, it seems to makes sense from ...
Is there any product out there that allows for the management of users using a standard asp.net membership database?
I'm looking for a web frontend user management system.
...
I use Resharper at work. Some of my colleagues do not.
When I open some code that has been written someone who doesn't, it is immediately obvious by the amount of orange on my screen.
What I am unsure of is to what extent I should feel free to tidy up the messes the have unknowingly left. With most of what I am looking at, it is slop...