Hope anyone can shed light on this so I can use pens with dash patterns?
I am writing a scrollable chart (a Panel inside ScrollViewer that implements IScrollInfo) in WPF using DrawingVisual's DataContext.DrawX. I have several thousand DrawingVisuals that get scrolled by using TranslateTransform on the Panel that hosts them. I implement...
What are the advantages of understanding CIL?
Do you have to know assembly to understand it? The code in these files looks similar.
How do I learn more about it? Any books about it like Jon Skeet's C# book?
...
How did you go about this:
1) did you use exe and dlls or created a cab file?
2) as far as deployment goes, did you implement a web service updater or use a third party deployment tool?
Any help/ideas is appreciated.
Thanks!
...
My company needs to allow the internal users of our application to write queries directly against the database through our UI. But when we display the results, our code needs to know which column and table each return column is for so that the results can be displayed with some color coding and other logic for each column.
So I was hopi...
Are there scenarios where JIT compiler is faster than other compilers like C++?
Do you think in the future JIT compiler will just see minor optimizations, features but follow a similar performance, or will there be breakthroughs that will make it infinitely superior to other compilers?
It looks like the multi core paradigm has some pro...
I know from reading the MSDN documentation that the "primary" use of the IDisposable interface is to clean up unmanaged resources http://msdn.microsoft.com/en-us/library/system.idisposable.aspx.
To me, "unmanaged" means things like database connections, sockets, window handles, etc. But, I've seen code where the Dispose method is imple...
The title pretty much stays it all. Say I have an enum with four values:
public enum CompassHeading
{
North,
South,
East,
West
}
What XAML would be required to have a ComboBox be populated with these items?
<ComboBox ItemsSource="{Binding WhatGoesHere???}" />
Ideally I wouldn't have to set up C# code for this.
Tha...
I copied the log4net samples to implement a custom log level, AUDIT. I defined AUDIT to have a value of 35000, between DEBUG 30000 and INFO 40000.
The following is my configuration section. I have one appender that logs all levels and one that is supposed to log only AUDIT levels (this is just for testing)
<log4net>
<appender name="F...
I'm trying to figure out which of these interfaces I need to implement. They both essentially do the same thing. When would I use one over the other?
...
Which FxCop rules do you most value? Which rules highlight the best .Net gotchas?
...
I have looked at the Suggested related questions but none of them are what I am looking for. As a new developer I am trying hard to follow best practices and documentation is a big one. As I go I am trying to create XML docs in my code. I discovered the GhostDoc plug in which helps speed this up.
My question though is; Is there a c...
Say you override operator* for point3 and float and then for float and point3 you used the operator like this:
point3 * float
Can you know if the operator method is going to end up inlined?
...
What are your thoughts about them?
Sometimes I have to write unmanaged code at work, but with large scale (games) projects, it just becomes way more time-consuming and complicated, which is solved by throwing more people at it.
Do you think managed code is viable for large scale applications? (applications like Photoshop, 3ds Max, Maya...
I see the terms managed and unmanaged used a fair bit around here. Searching online I can get a fuzzy notion of what they are, but what I really need to know is how it affects me as C# desktop app developer? How do I know which I'm dealing with at any point and how does it change my approach to that code?
Duplicate
http://stackove...
What are the pros/cons of both? Also, I've heard various rumors concerning if Microsoft will continue to support LINQ to SQL, any further info on this would be appreciated.
...
When using a SortedDictionary in Linq and iterating over the KeyValuePair it provides, can I be assured that a complex linq query will execute it in ascending order? Here's a brief, although a bit confusing example:
Random r = new Random();
//build 100 dictionaries and put them into a sorted dictionary
//with "priority" as the key and ...
I need to encrypt a string on the iPhone and send it to a .Net web service for decryption. I am able to encrypt/decrypt on the iPhone and with .Net, but the encrypted strings from the iPhone cannot be decrypted by .Net. The error I get is "Padding is invalid and cannot be removed."
The .Net code is from:
http://blog.realcoderscoding.c...
When writing a custom channel how can I get the name of the service method that will be called.
For example, if the operation contract looks like the following, how can I know if Method1 or Method2 is being called?
[OperationContract]
void Method1( int data );
[OperationContract]
void Method2( int data );
The channel itself doesn't ...
Both languages claim to use Perl style regular expressions. If I have one language test a regular expression for validity, will it work in the other? Where do the regular expression syntaxes differ?
The use case here is a C# (.NET) UI talking to an eventual Java back end implementation that will use the regex to match data.
Note that...
I am trying to understand the pricing requirements for a client to deploy reporting services reports to the web. Do they have to buy any sort of special Report Server license in order to deploy reports, or is that included in the standard versions of SQL 2005?
...