Re: [ADVANCED-DOTNET] Generics and Reflection

2005-06-06 Thread Daniel O'Connell
> > The 1 after the backtick (`) indicates the # of type > > parameters for the generic type. For example, given this > > type definition: > > > > class Generic {} > > > > you'd use "Generic`2". > > I've seen some weird syntaxis in my life (hello APL ;)) but this > is one of the most weird

Re: [ADVANCED-DOTNET] Application registration

2004-04-19 Thread Daniel O'Connell
It's really not that hard. Version information for assembly references is, to my knowledge, stored in one place in a given assembly, the AssemblyRef table. This table contains an index into the blob heap, where the public key token lays. A similar index exists that points to the hash value. Yo

Re: [ADVANCED-DOTNET] Enumeration bounds checking?

2004-04-09 Thread Daniel O'Connell
Because it's perfectly legal as far as the CLR is concerned. An enum is effectively an integral primitive that is treated slightly differently by the runtime. Any valid value for the primitive type is a valid value for the enum. By not limiting the enum to a set of values, it's possible to suppo

Re: [ADVANCED-DOTNET] NTFS Manipulation

2004-01-19 Thread Daniel O'Connell
Well, for starters you'll have an eaiser time using MC++ to write the interop rather than another language(what language are you targetting?). There is a pretty decent explination of the defrag apis as they were in nt 4 at [1]. 2k and XP have had some enhancements which you should be able to find b

Re: [ADVANCED-DOTNET] Method Inlining Curiousity

2003-11-22 Thread Daniel O'Connell
Sure, anything that makes sense to inline without considering that, really. Things like property accessors and basic utility methods will be inlined quite often, if not always. A method that does much more than some rather basic work probably shouldn't be inlined, it results in larger code and the

Re: [ADVANCED-DOTNET] C# generics constraints syntax

2003-10-24 Thread Daniel O'Connell
y methods. Thomas Tomiczek THONA Software & Consulting Ltd. (Microsoft MVP C#/.NET) > -Original Message- > From: Moderated discussion of advanced .NET topics. > [mailto:[EMAIL PROTECTED] On Behalf Of > Daniel O'Connell > Sent: Freitag, 24. Oktober 2003 03:02 &

Re: [ADVANCED-DOTNET] C# generics constraints syntax

2003-10-24 Thread Daniel O'Connell
ry : ICollection > where K : IComparable > where V : Object > > > BTW, what does the "new()" do? > > ^Tum > > > -Original Message----- > > From: Moderated discussion of advanced .NET topics. [mailto:ADVANCED- > > [EMAIL PROTECTED] On

Re: [ADVANCED-DOTNET] C# generics constraints syntax

2003-10-24 Thread Daniel O'Connell
what does the "new()" do? > > ^Tum > > > -Original Message- > > From: Moderated discussion of advanced .NET topics. [mailto:ADVANCED- > > [EMAIL PROTECTED] On Behalf Of Daniel O'Connell > > Sent: Friday, 24 October 2003 11:26 a.m. > > To

Re: [ADVANCED-DOTNET] C# generics constraints syntax

2003-10-23 Thread Daniel O'Connell
VB.NET doing? > > > > Dominic Cooney > > > > -Original Message- > > From: Moderated discussion of advanced .NET topics. > > [mailto:[EMAIL PROTECTED] On Behalf Of Daniel O'Connell > > Sent: Thursday, 23 October 2003 9:05 AM > > To: [EMAI

Re: [ADVANCED-DOTNET] C# generics constraints syntax

2003-10-22 Thread Daniel O'Connell
I'd say readability first, personally. It'd be alot easier to read public class Dictionary where KeyType : IComparable, ICollection, IAnotherThing, ValueType : IComparable, IDictionaryValue, IAnotherRestriction than public class Dictionary; Beyond that, I imagine parsing is easier this way. It w

Re: [ADVANCED-DOTNET] Async Data Commands with ADO.Net

2003-10-09 Thread Daniel O'Connell
>> But what's wrong with creating a thread? If you use the >> threadpool it's almost a one-liner! >Although if you use the threadpool you almost certainly won't be >creating a thread - you'll just be using a thread that was already in >the thread pool most of the time. >And that's typically a g

Re: [ADVANCED-DOTNET] Async Data Commands with ADO.Net

2003-10-08 Thread Daniel O'Connell
- Original Message - From: "Brian Gaer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 07, 2003 6:08 PM Subject: [ADVANCED-DOTNET] Async Data Commands with ADO.Net > Is anyone familiar with a method to have an ADO.Net command object > perform a command.ExecuteNonQuery(