Dear GOD!
For the life of me I can not find the Enterprise Library Strong Naming Guidance Package download for Enterprise Library 4.1
I need this to sign the assemblies to add them to the GAC.
Does anybody know where I can find it? I can't find it anywhere on the www.codeplex.com/entlib or www.codeplex.com/entlibcontrib websites.
HE...
I am trying to force a ChangeConflictException by altering records in two different browsers. This has worked for me in the past. But now it just wont throw the exception.
Last one in is winning.
I have checked the column properties of the entity I am updating and each column is set to always check.
Is there anything I can look for?
...
Hi, I am new to WPF development, I have a ListView and I want to freeze the header row so that it won't scroll off the screen when the user scrolls the list.
The xaml code, I have inherited, looks something like this:
<ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
<DockPanel>
<forms:Bindable...
How does JIT know where to look for csc.exe? Also how is this handled by other .NET languages, like IronRuby?
...
So you're at that time in your project when looking at Performance monitor, wondering "why is my gen 2 heap so large??"
That's where I am, currently. I'm interested in tools and tutorials for examining the contents of the gen 2 heap (and, by extension, gen 1 and 0 and the LOH).
...
I have a 2 forms setup
my first form will call another form with the ShowDialog() method when I receive data from the serial port
ShowDialog() throws InvalidOperation with additionnal information "DragDrop registration did not succeed"
any hints on how to solve this?
...
If I am using EventWaitHandle (or AutoResetEvent, ManualResetEvent) to synchronise between threads then do I need to call the Close() or Dispose() methods on that event handle when I am done with it?
EventWaitHandle inherits from WaitHandle, which implements IDisposable. And FxCop complains if I don't implement IDisposable on any class ...
Okay, this is probably a simple one...
I've got a string in .NET which is actually a url. I want an easy way to get the value from a particular parameter.
Normally, I'd just use Request.Params["theThingIWant"], but this string isn't from the request. I can create a new Uri item like so:
Uri myUri = new Uri(TheStringUrlIWantMyValue...
I am trying to learn lambda in C# 3, and wondering how this function would be written using lambdas:
Say you have a collection of Point3 values.
For each of these points, p:
create a new p, where .Y is:
Math.Sin ((center - p).Length * f)
center and f are external variables to be provided to the function. Also Point3 type will have ...
What is the best way to check for concurrency issues when using LINQ to SQL in an ASP.net application.
In my application, I am retrieving a record from the database and displaying the fields in editable textboxes. Then the datacontext is thrown away.
How should I save the entity object so that I can use L2Sql's built in concurrency fea...
Hi everyone!
I'm making a list of recent news. So, it will show something like this:
- Take a look at the new Volks...
- John Doe is looking for a jo...
- Microsoft is launching the n...
So, the list above only shows me the title of the news and the length of each news is limited in 25 characters. But, this is not working well... for...
I have an application with some sql queries in a class, each query inside stringBuilders..
I've made another application to extract the query from each string builder parsing the code.
The point is: I need to generate an execution plan for each one of this queries.
Is there any way to do this automatically without coping and pasting t...
I am reading data from a stream (provided by a process) character by character and adding it to a textbox so the user can see. The only problem is, this is SLOW. The user needs to see the data as it is given to the program (with little to no delay). I would like something like how terminals handle text, it can scroll by so fast that it's...
How do I find out which control has focus in winforms?
...
I'm using some controls that trap validation when anything happens--including when users press the exit button. Is there a way to tell if the exit button was pressed?
...
Is a long 128 bits on a 64 bit machine?
Edit: Duplicate question; see http://stackoverflow.com/questions/651956/sizeofint-on-x64.
...
I'm working on a project that has to connect to some ancient webservices that pack some hierarchical data for requests and responses into single strings of hierarchical XML.
I've been using xsd.exe to generate XSDs from sample request and response XML fragments, modifying them where necessary to be the best possible definition, and usi...
If I call SelectAll from a GotFocus event handler, it doesn't work with the mouse - the selection disappears as soon as mouse is released.
EDIT: People are liking Donnelle's answer, I'll try to explain why I did not like it as much as the accepted answer.
It is more complex, while the accepted answer does the same thing in a simpler w...
In C#, what specifically can go wrong if one fails to override GetHashCode() when overriding Equals()?
...
In an assembly loaded into the current AppDomain using Assembly.LoadFrom, I have the following code:
[TypeConverter(typeof(EnumConverter<Shapes>))]
public enum Shapes
{
Triangle,
Square,
Circle
}
The generic EnumConverter<T> is defined in the assembly returned by calling Assembly.GetEntryAssembly(). When I read the TypeConverte...