Hi *,
I’m learning regular expressions and I’m playing a little with them. I proposed myself an exercise in which I have a method that removes the columns aliases in a SQL Select statement. This should work like this:
The method can remove aliases in a SQL
select statement with the AS keyword:
“select ColumnA AS A”
The method can remo...
I'd love to start writting managed code for external devices and sensors. Are there any devices that come to mind that can be coded against using .NET? Any suggestions?
Edit: The main thing I'm trying to do is learn how device programming works. No better way to do that in my opinion than to try to do something fun and cool.
...
Hi,
I need to iterate twice through a DataReader. Is there a way to do this without using DataSets and without running the query twice? I'm using C#, by the way.
Thanks
...
I have completed a student project, this project extract data from xml files on internet and save to database and displays it. And i use that data in a few different ways e.g. display on main page, in another tab as a table, and to create some graphs.
I did all this by making 5 different classes. Each class extracts different type of XM...
How can I get a date that looks like this:
2010-07-08 23:59:59Z
from .NET's DateTime class?
...
We have a web application that runs on IIS using .NET 2.0 developed and built with Visual Studio 2005.
We're going to upgrade to .NET 3.5 and begin using Visual Studio 2008. Here are my questions:
I note the runtime is still 2.0-based.
When I loaded the solution in Visual Studio 2008, I was asked to convert, and I did. I then ch...
I was thinking of writing a client application in ASP.NET MVC first to make it available over the net to everyone.
In the near future I'd like to port it to Windows Phone 7 using Silverlight. How much of the code can I re-use from ASP.NET? Would I have to completely rewrite it?
Thanks in advance!
...
I've been looking through the Marshal class, but I can't seem to find a method that allows me to copy from an unmanaged array (IntPtr) to another unmanaged array (IntPtr).
Is this possible using .NET?
...
In a Windows Form application I have a Form with a UserControl that contains a child control. I have an event handler for the child control's Validating event. On the parent UserControl I call the ValidateChildren() method. But the event handler for the child control's Validating event does not run. The CausesValidation property is s...
I am using the System.DirectoryServices.AccountManagement class for querying the Active Directory.
I'm able to query the domain using various contexts fine, but every example I've found requires a domain name.
string domain = "MYDOMAIN";
PrincipalContext ctx= new PrincipalContext(ContextType.Domain, domain);
Normally this wouldn't be...
Per MSDN
URLEncode converts characters as follows:
Spaces ( ) are converted to plus signs (+).
Non-alphanumeric characters are escaped to their hexadecimal representation.
Which is similar, but not exactly the same as W3C
application/x-www-form-urlencoded
This is the default content type. Forms submitted with ...
Hi,
I have this small doubt which is not getting cleared as I m going through different articles around.
I am using stateserver in webfarm environment with .NET 4.0
Problem:
1) What gets serialized? object references or both. If only object reference is serialized(as I have understood so far from How does (de)serialization work in S...
I am unable to understand the logic behind List<int> as it breaks some of the basic rules.
List<int> is supposed to be of value type and not reference type.
List<int> has to be passed by ref keyword if its value has to be persisted between function calls. So this means it is displaying a value type behavior similar to int.
But List...
Thought I could use the BinaryWriter but haven't had any luck. Suggestions?
...
I have installed a new scansoft voice (Jennifer) in my Windows 7 OS in order to be able to use from in one application i'm developing.
but the problem is that I when I call the method :
List<string> allInstalledVoices = new SpeechSynthesizer().GetInstalledVoices();
I only get one voice returned, the default Microsoft Anna Voice. b...
This is probably an incredibly obvious question, but I just can't figure it out.
I have a Windows Form managed by the form designer. I'd like to include a custom user control, also managed by the form designer. But I'm unable to get the custom control to show up in the Toolbox, even if I try manually adding it under the "Choose Items......
How can i easily sanitize the values I pass into the Value property of an XAttribute.
...
Possible Duplicate:
List<int> in c#
I have the following program. I am confused about the output.
The line -
Console.WriteLine(listIsARefType.Count) prints 0 instead of 1. Any idea why ?.
class Program
{
static void Main(string[] args)
{
ListTest d = new ListTest();
d.Test();
}
}
cl...
I'm going boarder line crazy, I have been working with this for over a day and still have no idea why it doesn't work,
I have a MessageContract that I'm using to send out a stream, but I get the following error,
Type 'System.IO.FileStream' with data
contract name
'FileStream:http://schemas.datacontract.org/2004/07/System.IO'
i...
As an "EWS Managed API Newbie", I'm having some problems finding examples and documentation about creating and managing Tasks.
I've managed to create a task for myself without a problem. However, I really need to be able to do the following - if anyone could give me any pointers I'd really appreciate it...
Create a Task and assign it...