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).
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. Bulk Insert into SQL CE 3.5 in C# Adding much data to a SQL CE database can be very slow.
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. 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.
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 idea of checking weather a file is assembly or not by loading it and checking if exception is thrown or not; doesn’t seem to be too clean way at least to me. 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.
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.
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. Actually, before I go much farther with this:<legal_disclaimer> Disassembling or decompiling applications, reverse engineering, modifying code, etc all have possible legal ramifications.
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.
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).
He works at Nu-Mega Technologies Inc., and can be reached via CompuServe: 71774,362 This article is reproduced from the March 1994 issue of Microsoft Systems Journal. 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).
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).
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.
The world of Win32® has changed quite a bit in the intervening years, and the article is severely dated. 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. In the previous parts, I’ve discussed CodeDOMs, provided a C# CodeDOM, a WPF UI and IDE, a C# parser, solution/project CodeDOM classes, covered loading type metadata, and handled resolving symbolic references in a CodeDOM. The Visitor Pattern Calculating metrics on or searching a CodeDOM tree (or a sub-tree) both require traversing the objects in the tree.
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) In that thread, Andrew was asking why the following does not work? 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.
May 3, 2011 at 9:35 AM Edited May 3, 2011 at 12:29 PM Hi, Математическая библиотека для .NET. Нарастающий итог - сравнение производительности - Microsoft Russia ISV Team. Среднеквадратичное приближение функций. Энциклопедия Turbo Pascal. Главы 5-8. Глава 5. Статистический анализ. Math - Non-linear regression in C# Linear Regression with Math.NET Numerics - Christoph Rüegg. Прогнозирование финансовых временных рядов. Введение Всем привет, раз на хабре пошел цикл статей про нейронные сети, то и я напишу про возможность использования нейронных сетей в задаче прогнозирования финансовых временных рядов. 2.4 Методы прогнозной экстраполяции - Основы экономического прогнозирования - Монографии - Российская Академия Естествознания. При формировании прогнозов с помощью экстраполяции обычно исходят из статистически складывающихся тенденций изменения тех или иных количественных характеристик объекта.
.NET - Localization using Resource file.
ЕСИА. Using the OPTION (RECOMPILE) option for a statement - Kimberly L. Tripp. I started this series with the post titled: Little Bobby Tables, SQL Injection and EXECUTE AS. I then moved to discussing some of the differences with the post titled: EXEC and sp_executesql – how are they different? Today, I want to address a few of the comments as well as continue with a few tips and tricks using these commands. First off – could we have helped the performance of the sp_executesql statement? Yes… If we know that a statement returns a varying amount of data (based on the parameters supplied) then we can use the SQL Server 2005 feature WITH RECOMPILE to tell SQL Server that the statement being executed should have it's own plan created and that prior plans (if they exist) should not reuse the statement.
Chris Tacke - Not all Custom Attributes are created equal. Consider the following code:
Demo Europe: VCs Get Their Pick Of Hungry Start-ups. It’s a great time to be a venture capitalist (VC) in Europe, according to Hendrik Brandis, co-founder and managing partner of German VC firm Earlybird – because everyone wants your money. Although the European scene is improving, the demand for funding still outstrips supply, Brandis told the first ever Demo Europe event, held at the Digital October conference centre in Moscow. This makes it ideal, evidently, for investors because the number of start-ups looking for funding means VCs are spoilt for choice. Матричные фильтры обработки изображений.
How to Add Custom Configuration Settings for an (ASP).NET Application. Serialization. POCO Proxies Part 2: Serializing POCO Proxies.
PM & Patterns. How Proxy Server serves FTP clients? C# Delegates, Anonymous Methods, and Lambda Expressions – O My! Iis6 - Certificates: Cannot find the certificate and private key for decryption Error when sign. .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 DevTalk.net. 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.
.Net & Excel. MultiThreading. SerialPort. BinaryFormatter vs. Manual Serializing. Documentation:introduction [libnfc.org - 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. Design, Build and Release » Getting JQuery and WCF to talk (part one of two) Dreamsongs. Www.dreamsongs.com/Files/ObjectsHaveFailedSlides.pdf.
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.