I'm trying to serialize the following class:
[Serializable()]
public class BindingNode : IEnumerable<BindingNode>
{
public BindingNode()
{
}
IEnumerator IEnumerable.GetEnumerator()
{
throw new NotImplementedException();
}
public IEnumerator<BindingNode> GetEnumerator()
{
throw new NotImp...
Hi All,
I am not sure if this is a dupe. I came across this Switching from VB.NET to C# - any advice for learning C#?
My case is the reverse. I would be moving from C# to VB.Net. To be more precise, I would be moving from C# 3.0 to VB 10.0 (.Net 3.5 to .Net 4.0). I am initially planning to use a C# to VB converter to cope up with the s...
I have to write a .NET Regular Expression which validates if a string is alpha-numeric and has 4 or 8 characters (nothing less, nothing more). How can I do that? I tried with ([a-zA-Z0-9]{4})|([a-zA-Z0-9]{8}) but it doesn't work.
...
I am looking for a serial port component for .NET that overcomes the issues with the built-in Serial Port component related to sudden unplugging of USB-to-RS232 adapters, and suspension of the computer while the port is open. (Untrappable errors occurring after the the device is unplugged or the computer comes back after being suspended...
I have a WCF service load balanced across three different machines.
Let's say these services can process requests of types A, B, and C. There are no limits to processing A or B. However, we can only process 5 requests of type C at a time, so if a 6th request of type C comes in, it'll have to wait until one of the previous requests ...
I want to release a program for two versions, general and clickonce.
In general one, it include updating code for updating program, but clickonce one is not.
But, they are in the same solution/project code.
That is to say, I want to know how to know if a program or application can tell if it is clickonce or not itself by code.
...
Imagine two bitmasks, I'll just use 8 bits for simplicity:
01101010
10111011
The 2nd, 4th, and 6th bits are both 1. I want to pick one of those common "on" bits at random. But I want to do this in O(1).
The only way I've found to do this so far is pick a random "on" bit in one, then check the other to see if it's also on, then repe...
Looking for a Silverlight report component. Nothing fancy, typical report layout would be - a bunch of colored grids on the same endless page.
Currently contemplating about giving a try to a Component's One flexi grid control. Is it any good.
Any directions and recomendations?
Thank you.
...
I want my ListBox to have columns, and one of those columns have to be a clickable URL.
How can I achieve this?
...
How can I determine what item was clicked on my ListBox?
...
How is an arrays Length property identified, by an internal variable (i.e. m_Length) or it's gonna enumerate thru all the items of the array.
The difference takes place if I want to check whether an array contains any elements.
Dim asdf = { "a"c, "s"c, "d"c, "f"c }
Dim any = asdf.Any()
Dim any2 = asdf.Length > 0
(Also note that Any i...
I am trying to understand how the following scenario could be implemented using reactive extensions. Other solutions that I have been looking at involve managing a series of timers... something that I am looking to avoid if possible.
Scenario
A stream of "ActionRequests" occurring. The ActionRequest's streaming in are from different o...
Hello experts,
I want to know the internal working of .net when we doing any thing at application level. Like if in my project I will create an object of class then what happened in the behind of the scene in .net internal level or when I inherit a base class to a child class then how my child class get all method of base class what exa...
I have a table that I'm creating in iTextSharp and populating with data at runtime. The number of columns are variable and the text in them could be any size.
When I create the table at the moment, the columns are the same size. However, some columns have wasted space and others have cramped content. I want the columns to automatically ...
I have a variable number of OR conditions that I want to put together into one Linq query.
How do I do this in a loop? Basically, the final query is to be:
IQueryable<MyObject> Q;
Q = Q.Where(q => (condition1) || (condition2) || ..... || (condition N));
Something like:
For (int i = 0; i < someNumber; i++) {
Q = Q.Where(q => (exis...
We want to store Microsoft Word templates in our database. Then we wish to allow the user to edit the template files and then store them back to the database. What is the best strategy to use in this situation?
Is this possible if we have Word running in a separate process? i.e. not hosted in our application. If so would this involve mo...
Hi,
In my company we have same solution but done in different version of .net frame works. Currently my pc is having visual studio 2010 (4.0 frame work). My boss asked me to go through a code done by frame work 1.1 and find some logic (including execution the code). Is there a way to open that application by visual studio 2010 without do...
hi,
i am using UpdatePanel and ContentTemplate and asp panel which is visible false on page load and is visible is true when the condition is satisfied.
my problem is,when i am using UpdatePanel, on coding side the panel is getting visible=true but it is not getting displayed.
when i am removing UpdatePanel,the panel is getting visible=...
Hello,
I am using the System.Windows.Media.Effects.DropShadowEffect that has been available since .net 3.0 sp2 and .net 3.5 sp1.
Now I'm getting errors from systems that have only .net 3.0 and .net 4.0 - they get:
TypeLoadExcpeption
Could not load type 'System.Windows.Media.Effects.DropShadowEffect' from assembly 'PresentationCore, V...
I got
System.Data.Datarow.Datarow(System.Data.Datarowbuilder) is inaccessible due to its protection
level.
while connecting to SQL-Server. What does it mean?
...