Re: Delegates, not anonymous methods

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Note that there are conversion tools around - or you can simply
compile it (from VB) and look in "reflector" to see how the same code
is written in VB.Net and C#. But it should be something like below.

Marc

// field declaration
List<Field> fieldList;
// enumeration
void Test() {
foreach(Field fld in fieldList.FindAll(SearchSelOrKeyNotID)) {
// do stuff here
}
}
// predicate
private static bool SearchSelOrKeyNotID(Field f) {
return !f.IsIdentity && (f.IsSelected || f.IsKey);
}

.



Relevant Pages

  • Re: Obfuscator and Decompiler
    ... The FileDisassembler addin you mentioned allows reflector to dump ... I'm not assuming that users want both a decompiler and an obfuscator. ... also does not compile for any significant application including ... as well, so developers who have any issues using our trial software, ...
    (microsoft.public.dotnet.security)
  • Re: Obfuscator and Decompiler
    ... > public int ReadInt32() ... Here's a few more Reflector code generation errors that generate ... already mentioned but you can see several compile time errors here ...
    (microsoft.public.dotnet.security)
  • RE: Convert c# form to C++.Net
    ... Once downloaded open Reflector ... Compile your program either a DLL or EXE ... Right click on the class your want to decompile. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: How to recover source code from a dll thats compiled in debug release
    ... you could try reverse engineering the assemblies ... using tools like Reflector, but that will not give you the exact code that ... was used to compile with, only an interpretation since the compiler does ...
    (microsoft.public.dotnet.framework.aspnet)