Facebook Twitter

Generics in the .NET Compact Framework - Welcome to Live Mesh! Parametric polymorphism (aka Generics) is one of the most interesting new features added to .NET CLR and languages in version 2.0 (Whidbey).

Generics in the .NET Compact Framework - Welcome to Live Mesh!

There are many good articles describing the feature and its’ implementation for the full .NET CLR. For those who interested in the design fundamentals of generics I’d strongly recommend the article by Don Syme and from Microsoft Research, who originally designed and implemented .NET generics. Many people were asking what .NET Compact Framework generics story is. Bulk Insert into SQL CE 3.5 in C# Adding much data to a SQL CE database can be very slow.

Bulk Insert into SQL CE 3.5 in C#

If you try to for example add 10000 single records in one table with normal SQL INSERT command’s it would take at least 50 sec. So this could really use a performance boost. After some research I found this site: SQL Compact 3rd party tools. This is an attempt at a comprehensive list of SQL Server Compact Microsoft and 3rd party tools, both commercial and non-commercial.

SQL Compact 3rd party tools

Please let me know if I have missed anything, and I will add it. Microsoft supplied tools SQL Server 2005 Management Studio Express SP2 (free, SQL CE 3.1)Link: LINQ Challenges and SQL Server Compact Edition. Code, code and more code.: Re-implementing Expression for Compact Framework. How to detect and avoid memory and resources leaks in .NET applications. Rupreet/archive/2005/11/02/58873.aspx. There are some scenarios where need to check programmatically if the given file is a .NET assembly or not.


How do we do that? One way is to use reflection and try to load that file (assembly). If the assembly gets loaded, and doesn’t throw any exception, then yes, it’s a valid .NET assembly. If it’s not a valid file, then it’ll throw a “BadImageFormatException”. The .NET File Format. Index Introduction The standards of the .NET format are public, you can find them on Microsoft and in your .NET SDK (look after "Partition II Metadata.doc"), but they are intended to be more like a reference, not really a guide.

The .NET File Format

So, the truth is that a description of the format can be useful. I mean, there's a huge difference between having the WinNT.h and having the full explanation of its structures and stuff. The documentation given by Microsoft has some explanations, but a lot of passages aren't very clear at all. Building a .NET Disassembler (Part 1) There was a time, long ago, when I was in college, and thought it would be awesome to crack code.

Building a .NET Disassembler (Part 1)

This largely means digging into the bytes of an application, and seeing how it works, and possibly modifying the application code to suit your needs. Back in the days where just about everything was C/C++ or at least native code, this meant using a disassembler (like win32dasm for example) and strong assembly language skills. Reading PE format using data marshaling in .NET - Sergey Akopov. I recently picked up a book on IL by Serge Lidin titled Expert .NET 2.0 IL Assembler.

Reading PE format using data marshaling in .NET - Sergey Akopov

It is by far the most interesting book that I’ve read on .NET internals, which is actually fairly easy to follow thanks to the friendly nature of the managed environment and the awesomeness of the author. If you want to satisfy your curiosity about disassembling and generating IL code, this is the best book on the market. Anyway, the first couple of chapters in the book go over the Portable Executable (PE) format which is really vital in understanding how your compiler pieces together assemblies and how the loader is able to resolve dependencies and get everything into memory to get things executing.

While going through the explanation of the PE format in the book is enough to understand the bare minimum, i decided to go hands-on and write a little PE parser. Before i throw down some code, I’d like to reference a few resources which will help in understanding the PE format better. Peering Inside the PE: A Tour of the Win32 Portable Executable File Format. Matt Pietrek March 1994 Matt Pietrek is the author of Windows Internals (Addison-Wesley, 1993).

Peering Inside the PE: A Tour of the Win32 Portable Executable File Format

Peering Inside the PE: A Tour of the Win32 Portable Executable File Format. Matt Pietrek March 1994 Matt Pietrek is the author of Windows Internals (Addison-Wesley, 1993).

Peering Inside the PE: A Tour of the Win32 Portable Executable File Format

Inside Windows: An In-Depth Look into the Win32 Portable Executable File Format. Long time ago, in a galaxy far away, I wrote one of my first articles for Microsoft Systems Journal (now MSDN® Magazine).

Inside Windows: An In-Depth Look into the Win32 Portable Executable File Format

The article, "Peering Inside the PE: A Tour of the Win32 Portable Executable File Format," turned out to be more popular than I had expected. To this day, I still hear from people (even within Microsoft) who use that article, which is still available from the MSDN Library. Unfortunately, the problem with articles is that they're static.

Inside Windows: An In-Depth Look into the Win32 Portable Executable File Format, Part 2. Ast month in Part 1 of this article, I began a comprehensive tour of Portable Executable (PE) files. I described the history of PE files and the data structures that make up the headers, including the section table. The PE headers and section table tell you what kind of code and data exists in the executable and where you should look to find it. Inside Windows: An In-Depth Look into the Win32 Portable Executable File Format. Calculating Metrics and Searching with a CodeDOM (Part 8) Introduction This article is about basic analysis of code in a CodeDOM, such as calculating metrics on it and searching it. Sources are included.

This is Part 8 of a series on CodeDOMs. Accessing Assembly Metadata with Reflection or Mono Cecil (Part 6) Introduction This article is about loading type metadata from .NET assemblies using Reflection or Mono Cecil, with the specific goal of supporting the resolution of symbolic references in a codeDOM. Sources are included. This is Part 6 of a series on codeDOMs, but it may be useful for anyone who wishes to retrieve type metadata from .NET assemblies for any reason.


Head First C# - Source Code. Why doesn’t MEF support open-generics for exports? Because MEF is not type based. Update: We’ve posted an extension for doing open generics in MEF contrib. Read about it here: I get this question all the time. Recently it popped it’s head on the forums in this thread (which I referred to in my last post) Open-generic support in MEF Contrib. A while ago I said it couldn’t be done, at least without hacky string parsing. Folks weren’t happy and they let us know it including Oren. Our team know the power that open-generic support brings to systems, but at the time there was no clean way to implement it in MEF. Managed Extensibility Framework - Understanding ContractBasedImportDefinition & GetExports. Математическая библиотека для .NET. MVVM (Model-View-ViewModel) Pattern For Windows Form Applications, using C# MVVM for .NET Winforms – MVP-VM (Model View Presenter - View Model) Introduction. Einar Ingebrigtsens Playground.

Нарастающий итог - сравнение производительности - Microsoft Russia ISV Team. Среднеквадратичное приближение функций. Энциклопедия Turbo Pascal. Главы 5-8. Math - Non-linear regression in C# Linear Regression with Math.NET Numerics - Christoph Rüegg. Прогнозирование финансовых временных рядов. 2.4 Методы прогнозной экстраполяции - Основы экономического прогнозирования - Монографии - Российская Академия Естествознания. .NET - Localization using Resource file.

Image Analyzing

ЕСИА. Using the OPTION (RECOMPILE) option for a statement - Kimberly L. Tripp. Chris Tacke - Not all Custom Attributes are created equal. P/Invoke. Demo Europe: VCs Get Their Pick Of Hungry Start-ups. Матричные фильтры обработки изображений. How to Add Custom Configuration Settings for an (ASP).NET Application. Serialization. POCO Proxies Part 2: Serializing POCO Proxies. General Topics. How Proxy Server serves FTP clients? C# Delegates, Anonymous Methods, and Lambda Expressions – O My! Presentation Model (MVVM) Good Practices. Iis6 - Certificates: Cannot find the certificate and private key for decryption Error when sign.

[Entity Framework] Using Include with lambda expressions » Thomas Levesque's .NET blog. .NET interop marshaling made easier. Mastering C# structs - C. Passing Managed Structures With Strings To Unmanaged Code Part 2 « limbioliong. Набор полезных утилит и библиотек мира .NET. Mifare для разработчиков, Техническая документация. Chained null checks and the Maybe monad at C# - Remove Control from Window in WPF. C# - Using dynamic objects in codedom created LINQ queries. Implementing Dynamic Interfaces. Studio Styles - Visual Studio color schemes. Open-Generics Support in MEF– Building a simple sample - Ariel's Remote Data Center. Damn Cool Algorithms: Cardinality Estimation. MEF vs. Unity in composite application (Prism) CavityServiceLocation - cavity - Provides XML configuration assistance for IoC providers - Tools and utilities for .NET. StructureMap — краткий справочник для работы (1/3)

IoC libraries compared. .Net 4.0: Configuring MEF with Linq to Xml.

Ruby on Rails

.Net & Excel. MultiThreading. PM & Patterns. SerialPort. BinaryFormatter vs. Manual Serializing. Part 2: Automatic Memory Management in the Microsoft .NET Framework. Documentation:introduction [ - Public platform independent Near Field Communication (NFC) library] Йет эназер говноблог (лайт вершн) - Про копирование Mifare Classic и нехороших людей. Пишем свой сервис авто-обновлений. Введение в Windows Server AppFabric. Hosting Services вместе с BizTalk и Service Bus / Блог компании Microsoft. Движок Azopho для создания галерей фотографий - Гайдар Магдануров. Convert C# to VB.NET - A free code conversion tool. Сайт поддержки сервис-инженеров и пользователей Контрольно-Кассовых Машин.

MathML 2.0 installation in web browser. MathML Samples. Хеширование. Пепелсбей.net. 10 Tips to Improve your LINQ to SQL Application Performance. Design, Build and Release » Getting JQuery and WCF to talk (part one of two) Dreamsongs.

DSL and EF

F# ASP.Net & MVC. Objects Have Not Failed. FreeCssTemplates. Creating Custom Action for WIX Written in Managed Code without Votive. Loading the WCF configuration from different files on the client side - Pablo M. Cibraro (aka Cibrax) Gis. WPF.