Is anybody using the .NET profiler made by yourkit? I am looking for a good .NET profiler and stumbled upon the yourkit one. As I would purchase a single person license, it would cost 79 EUR for me, which is pretty ok imho. What I also like: the more or less easy to use and friendly GUI.
But I am not very experienced in profiling .NET ...
I'd like to create a plug-in architecture where I can limit an assemblies API to something very restricted, i.e. only allow a whitelist of functions.
Is it possible to restrict what functions/methods a plug in assembly can call?
Can I do it using AppDomains?
Does anyone have a simple example?
...
Hi, I'm interested in how plausible it would be to capture Win32 debug traces system-wide in the way DbgView does. I'm not interested in Kernel messages thankfully so I don't need any help there. This needs to be in C# but I'm happy with unmanaged/unsafe if necessary.
Is there any global hook I can get or am I setting off down a diff...
I know that it's possible to have many classes in a namespace.
Now, is it possible to have a class in more than one assembly (.dll file)?
...
One year ago Mitchel Sellers had a related question...
I would like to access the Google IMAP for sending and receiving email messages within my custom application.
The point is that i would not like to use any third party controls.
Newer versions of the .Net Framework support IMAP? What options do i have?
...
What is the precise implementation of Enumerable.Range in .Net; preferable .Net 4? Is it a yielded for-loop? A custom implementation (IEnumerable, IEnumerator) or?
...
Given this LINQ expression:
items.Select( i => i.ToLowerInvariant() ).Except( keywords )
Is there a way to express that where you preserve the casing of the input, without using a Where()?
The Where approach:
items.Where( i => !keywords.Contains( i.ToLowerInvariant() ) )
I like the way the Except approach reads, but I don't want t...
I have a report, this report with several subreports, sometimes throws an error when loading "Could not load report", but however still loads the report. (not my current issue, just as some additional information)
I clicked on a subreport, and an exception was thrown "The communication channel has not been created."
Stacktrace is:
...
How can I find a list of error codes for sql server, socket exceptions, web exceptions or any exception.
For sql server I am not able to find all the error codes in sysmessages like for instance errorcode 53, 17 so where do we find such codes?
For example System.Net.Sockets.SocketError sockererror is an enum which contains most of the ...
How far along does software compiled for .NET 3.5 get before crashing on a system that only has .NET 2.0 installed?
The application I am developing uses WPF and requires .NET 3.5, but I would like to display a user-friendly dialog (rather than crashing) if the user does not have it installed.
Are there any standard ways to do this, or ...
Is there a way to decorate a method that will do some logging, then throw an exception unconditionally, as such?
I have code like this:
void foo(out int x)
{
if( condition() ) { x = bar(); return; }
// notice that x is not yet set here, but compiler doesn't complain
throw new Exception( "missed something." );
}
If I try writi...
Hello,
What can be the issues if I build a solution where all the projets are under targetFrameworkVersion=2.0 but one with targetFrameworkVersion=3.5 and
None of the 3.5 features are used
Some of the 3.5 features are used but the classes calling the 3.5 code are never instanciated
Some of the 3.5 features are used in some classes, th...
I have the following method:
namespace ListHelper
{
public class ListHelper<T>
{
public static bool ContainsAllItems(List<T> a, List<T> b)
{
return b.TrueForAll(delegate(T t)
{
return a.Contains(t);
});
}
}
}
The purpose of which is to determine if...
I have written a simple log4net wrapper. I was wondering whether this wrapper code could be improved.
I am little bit worried about the reflection code thrown in into each Logging Function (Info, Warn etc) to get the Calling function name. Whether there could be any possible performance problems in due to this?
namespace Acqueon.Pacer...
I have a Castle Windsor component, that depends on a string. The string needs to be determined at runtime, based on another string, which is constant and can be set in the component configuration. How do I wire this up using Castle Windsor ?
The problem is general, but the specific scenario I need it for is a class that takes the full ...
I never worked with Silverlight before, but I have the requirement to build a fairly dynamic/interactive form to fill out. That leaves me the choice between two technologies I have not much experience with: JavaScript/jQuery or Silverlight. (edit: The application is internal, I can safely assume Silverlight to be available)
At the end, ...
Hello,
I'm trying to pass a parameter to an XSLT stylesheet, but all i'm getting is an empty xml document when the document is transformed using XSlCompiledTransform.
This is the C# method used to add the parameters(after adding in people's suggestions)
private static void CreateHierarchy(string manID)
{
string man_ID = m...
I am planing to use BackgroundWorker on my .net site to perform some database maintenance every night at 12:00. Is it a good idea to have asynch proccess monitoring time and perform action? I am using sql server express edition so i can't use any scheduling on database side. I also don't want to use windows task scheduler
...
Preferably using a Graphics object, how do you draw a string so that the characters are still oriented normally, but are stacked vertically?
Hopefully this rough picture conveys what I mean:
...
Using ATL/COM-based technology as the basis of comparison, I'm looking for some recent and fairly in-depth benchmarks on .NET Windows forms & controls which compare the two frameworks (if any).
For example:
Application load/start-time.
Resource usage (GDI handles, memory, etc.)
Garbage collection pauses (obviously, applies to .NET onl...