Hey all,
I have need of a sort of specialized dictionary. My use case is this: The user wants to specify ranges of values (the range could be a single point as well) and assign a value to a particular range. We then want to perform a lookup using a single value as a key. If this single value occurs within one of the ranges then we w...
I am trying to merge two .net regular expressions into one. The following expressions are validating excel like cell names.
Regex.IsMatch(name, @"^[A-Za-z]{1}[\w\.]*$") &&
!Regex.IsMatch(name, @"^[A-Za-z]{1,2}\d+$");
The first part ensures the cell name starts with a character and can be any length. The second ensures the cell na...
Hi,
I've got a problem using the .net XMLSerializer object and XML namespaces. My experience of the the XMLSerializer is very limited and I haven't worked with XML much before. I'm trying to something like the following:
<Record xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Property1>blah</Property1>
<oai_dc:dc xmlns...
I have to design a mobile portal that has support for support Android,BlackBerry and IPhone. Shall I use eclipse, .Net framework or something else.
I have written a test application using .net 3.5 and it renders and works well for all the required platforms (Android,BlackBerry and IPhone), so not sure what I am going to miss if I use .n...
I've migrated some code from plain old web services in .Net 2.0 to WCF but I missed a requirement in the code and now have an issue.
The new WCF services take the currently logged on domain user and pass their details through to the server so they don't need to sign on. This means all WCF services run under the context of the user acces...
I have a DataGridView, and would like to hook into the CellEndEdit event. I've been able to successfully hook into the CellContentClick event, but am having issues with CellEndEdit.
I added the following code to my Form1.cs file:
private void dataGridView1_CellEndEdit(object sender, DataGridViewCellCancelEventArgs e)
{
...
I can't add a PNG image that contains alpha chanel into a picturebox dynamically by code because it always replace the transparent area with the black color. Is there a way to do it?
...
When you right-click on a file in Windows and select "Properties" from the menu, it opens the Properties window. On that window for most files types there's a "Summary" tab that contains a variety of information.
Is there a managed/.NET way to retrieve that information? I had assumed incorrectly that this would be a trivial thing to do ...
Hello, I have loaded an assembly called 'Mscorlib.dll' and i wanted it to list all classes within the 'Mscorlib', which it does(using reflection). Now I want to add a function whereby the user inputs a class from the assembly and it gets all the methods from that class.
How would i go around doing this? Any help would be nice
...
I regularly (every few days or so) publish my ASP.NET web project to the local web server.
But the weirdest thing keeps happening... a file called "app_offline.htm" keeps appearing, unbidden, in my web project!
I have deleted this file several times, it is not in source control, and AFAIK nobody else is tampering with the project. But...
For 10 I want 10 and not 10.00
For 10.11 I want 10.11
Is this possible without code? i.e. by specifying a format string alone simlar to
{0:N2}
Thanks!
...
Can an Interface contain an Enum?
I am using asp.net 2.0. Suddenly my code started having problems when I added an enum to the interface below. In it, LookUpType is an enum.
Public Interface ILookup
Property ID() As Int32
Property Text() As String
Property Description() As String
Property Status() As Status
Property...
We've all seen it and now I want to do it. How may I go about achieving this effect with a winforms application?
...
I've recently started using NHibernate, and on the whole like it a lot.
Until I ran into a problem with needing to serialize to XML and back.
I have a class that has a many to many relationship, so have an IList in the parent class to hold the list of child objects.
Class parentClass{
IList<childClass> childList;
string varA;
s...
We need to implement some general-purpose object structure, much like an object in dynamic languages, that would give us a possibility of creating the whole object graph on-the-fly. This class has to be serializable and somehow user friendly.
So far we have made some experiments with class derived from Dictionary<string, object> using t...
How to configure WCF to use just one of two available endpoints?
I need two TCP ports (and thus using netTcpBinding). The service host should first try to bind to the first port. If it fails, and only if it fails, it should try to bind to the second port.
EDIT
I known it can be achived programatically, but my intention to do it declar...
Hi, Can somebody help me to get a content between [%= and %].
...
Is it possible to have a single stream and have more than one XmlWriter write to that stream and end up with well-formed XML?
I have an object hierarchy in which each object is solely and fully responsible for serializing itself. My latest attempt has been to create a stream at the highest level, then pass that stream reference down an...
I am trying to take a date string and turn it into a specific NSDate (eg. July 1, 1981), but I don't see and methods for setting the date. Does anyone know how to accomplish this? Perhaps convert a DateTime object to NSDate?
...
Hello,
I am in need to encrypt/decrypt data that has been encrypted on the database (Sql Server 2005) level in the .Net code. RjindaelManaged with 256 bit key length and 128 bit block size is the equivalent of AES 256 algorithm, but I don't know how to go about matching Key and IV so that both Sql Server and .Net encryption methods woul...