I have a class as shown below that stores a Uri object and also a count. The idea is that I create a list of UrlPackage objects to hold Links found when trawling a domain and a count of how many times they were found. The problem is how to check if a Uri has already been added to the list.
I used to store the Uri's directly in a list th...
I know that in C#, there are several built in events that pass a parameter ("Cancel") which if set to true will stop further execution in the object that raised the event.
How would you implement an event where the raising object was able to keep track of a property in the EventArgs?
Here is a WinForms example of what I am trying to do...
I'm writing a JAXWS-RI client that must call a .NET Web Service that is using WS-Security. The service's WSDL does not contain any WS-Security info, but I have an example soap message from the service's authors and know that I must include wsse:Security headers, including X:509 tokens.
I've been researching, and I've seen example of fo...
Can anybody please provide any links and/or recommendations for the processing of batch information with Windows Workflow.
Specifically, I am looking at an invoicing scenario where there are complex rules required for the generation of prices and I am looking to be able to read in excess of 50k rows of data from a SQL Server 2008 databa...
Lets say I have an object that has stringProp1, stringProp2. I wish to store each combination of stringProp1, stringProp2 in a Dictionary. Initially I was storing the key as key = stringProp1+stringProp2 but this can actually cause a bug depending on the 2 values. Is the best solution for this problem to create a custom dictionary cla...
What are some pros/cons for using the Reflection.Emit library versus CodeDOM for dynamically generating code at runtime?
I am trying to generate some (relatively complicated) dynamic classes in a system based on metadata available at runtime in XML form. I will be generating classes that extend existing classes in the application assemb...
Is there are a guide published by microsoft or somebody else about the best practices for creating scalable web applications? like patterns to use and how to do data access.
...
As the question says, I am curious if any of you know about attributes that affect how the CLR will compile/optimize the bytecode. Is there an attribute that will affect code inlining decisions? Unroll loops?
Are there undocumented attributes on classes generated for anonymous types/delegates?
There's probably attributes to disable op...
Hello,
I m invoking a web service and they stop my service calls after an hour,
the hourly limit of 5000 requests for the IP address MY IP :)
has been exceeded.
I m using C#, and is there a way around this?
Can i programatically send the requests as if they are coming from different IP ?
Is that possible?
Thanks
...
Is there a way to display database open dialog from SQL server in my .NET application (the same way I can display a file open dialog, or font dialog)
?
...
I am trying to write documentation comments however I have a problem.
/// <summary>
/// Inserts an element into the System.Collections.Generic.List<T> at the specified
/// index.
/// </summary>
When I reach the <T> Visual studio thinks I am trying to add another tag. what is the correct way to add comments like that (and if I could ma...
Hey guys,
Over the last few months I've often come across the same Design obstacles when developing certain kinds of distributed applications.
Firstly, let me set out my environment, and distributed applications:
.NET enviroment
All communication is done over HTTP
Applications are often on different servers
Usually is a combination o...
How to unit test a timer based on System.Threading.Timer in .NET
The System.Threading.Timer has a callback method
...
I just posted this question and learned about <see cref="">, however when i tried
/// This is a set of extensions that allow more operations on a <see cref="byte[]"/>.
The compiler gave me warnings about it not being formatted correctly. What do I need to do so it will see the code reference correctly?
...
I'm writing a bit of LINQ to SQL that needs to perform a search for client information in our database, filtering the results and paging them. The filtering needs to be dynamic so I have broken the setup of the query into four stages:
Find visible clients (basically apply a coarse grained filter)
Filter clients by search criteria
Sort ...
Hello,
I am looking for a way to translate mouse movements - while the left mouse button is kept pressed down - into numbers 0 - 9.
Are there any existing .NET libraries for this?
many Thanks for any advice on this,
Kave
...
Hello,
If I was going to create an application on Windows Azure Cloud, which the end user would access through a web browser. I wonder what the requirements for the end user are in order to use that application?
If I was going to write the frontend in Silverlight, is everything the user would need be just the Silverlight runtime? Or do...
Dear ladies and sirs.
In numerous places do I encounter partially qualified type names of the form FullTypeName, AssemblyName, i.e. like Type.AssemblyQualifiedName only without the version, culture and publicKeyToken qualifiers.
My question is how can one convert it to the respective Type in a minimum of effort? I thought that Type.Get...
I'm looking for any helpful links or advice on translating an incoming EDI 940 (X12) to a (|) Pipe delimited flat file in c#.net
...
So that it just allows selecting items already inside, but not allow typing/editing the text inside it?
...