RSS Feed for .NETCategory: .NET

Windows Zip, GZip, Tar and BZip2 Library »

#ziplib (SharpZipLib, formerly NZipLib) is a Zip, GZip, Tar and BZip2 library written entirely in C# for the .NET platform. It is implemented as an assembly (installable in the GAC), and thus can easily be incorporated into other projects (in any .NET language).
The creator of #ziplib put it this way: "I’ve ported the zip […]

Library for Windows API Hooking »

EasyHook supports extending (hooking) unmanaged code (APIs) with pure managed ones, from within a fully managed environment like C# using Windows 2000 SP4 and later, including Windows XP x64, Windows Vista x64 and Windows Server 2008 x64. Also 32- and 64-bit kernel mode hooking is supported as well as an unmanaged user-mode API which allows […]

Open Source Windows Spying Tool »

oSpy is a tool which aids in reverse-engineering software running on the Windows platform. With the amount of proprietary systems that exist today (synchronization protocols, instant messaging, etc.), the amount of work required to keep up when developing interoperable solutions will quickly become a big burden when limited to traditional techniques.
However, when the sniffing […]

MessagingToolkit MMS is released »

Now you can send and receive both SMS and MMS starting release 1.1.

MMS can be sent using the built-in MMS slide feature, or you can build the MMS message yourself. You can also save the MMS file to be sent out later.
The software is available at http://twit88.com/platform/projects/show/messagingtoolkit

Model and Solve Comple Problems with Solver Foundation »

Microsoft Solver Foundation is an extensible framework that helps you model and solve complex problems by:

Modeling and solving scenarios by using constraints, goals, and data.
Programming in the Optimization Modeling Language (OML), in C# imperatively, in F# functionally, or in any .NET Framework language.
Integrating third-party solvers, such as Gurobi, Mosek™, FICO™ Xpress, LINDO, […]

Error Logging Modules and Handlers for ASP.NET »

ELMAH (Error Logging Modules and Handlers) is an application-wide error logging facility that is completely pluggable. It can be dynamically added to a running ASP.NET web application, or even all ASP.NET web applications on a machine, without any need for re-compilation or re-deployment.
Once ELMAH has been dropped into a running web application and configured […]

Open Source .NET OCR Engine »

Tesseract is a C++ open source OCR engine. Tessnet2 is .NET assembly that expose very simple methods to do OCR.
Tessnet2 is multi threaded. It uses the engine the same way Tesseract.exe does. Tessdll uses another method (no thresholding).
Tessnet2 is under Apache 2 license (like tesseract), meaning you can use it like you want, included in […]

Binding Business Requirements to Code »

SpecFlow
SpecFlow aims at bridging the communication gap between domain experts and developers by binding business readable behavior specifications to the underlying implementation.
The mission is to provide a pragmatic and frictionless approach to Acceptance Test Driven Development and Behavior Driven Development for .NET projects today.
SpecFlow is open source (BSD License).

Concordion
Concordion is an acceptance testing framework […]

.NET: Convert to Local Timezone »

You can use the style DateTimeStyles.AssumeLocal to parse the date time string if there is no timezone information contained in the string.
E.g.

1: DateTime.ParseExact(dateString, DateFormats, CultureInfo.InvariantCulture, DateTimeStyles.AssumeLocal);

If datestring contains no time zone information, the DateTime..::.Parse(String, IFormatProvider, DateTimeStyles) method returns a DateTime value whose Kind property is DateTimeKind..::.Unspecified unless a styles flag indicates otherwise. […]

Code Contracts from Microsoft Research »

Code Contracts provide a language-agnostic way to express coding assumptions in .NET programs. The contracts take the form of preconditions, postconditions, and object invariants. Contracts act as checked documentation of your external and internal APIs. The contracts are used to improve testing via runtime checking, enable static contract verification, and documentation generation.
Code Contracts bring […]

C#: Convert Byte to SByte »

Here is a simple way to convert SByte to Byte in C#. E.g. if you want to convert the value of 129 from data type Byte to –127 in SByte

1: byte byteValue = 129;

2: sbyte sb = unchecked((sbyte)byteValue);

3: Console.WriteLine(sb);

C# Parser Framework »

Sprache is a small library for constructing parsers directly in C# code.
It isn’t an "industrial strength" framework - it fits somewhere in between regular expressions and a full-blown toolset like ANTLR.
Unlike most parser-building frameworks, you use Sprache directly from your program code, and don’t need to set up any build-time code generation tasks. […]

Viewing Outlook Msg File OLE Type Attachment »

This is a bit tricky to view OLE type of attachment in Outlook .msg file. You need to use MsWord library in order to extract the attachment.
Here is the code snippet that does the trick.

1: for(int loop = 1 ; loop < (mItem.Attachments.Count+1) ; loop++){ […]

.NET Slide Control »

SlideControl is a .NET container control that manages presentation slides and offers a pleasing slide-effect when switching between slides. SlideControl has a built-in backtracking-stack that remembers slides visited and unrolls these actions on demand.
SlideControl is built with simplicity in mind:
SlickInterface.SlideControl is a container control that is placed on your Form and allows the […]

Open Source Financial Technical Analysis Library »

TA-Lib is widely used by trading software developers requiring to perform technical analysis of financial market data.

Includes 200 indicators such as ADX, MACD, RSI, Stochastic, Bollinger Bands etc…
Candlestick pattern recognition
Open-source API for C/C++, Java, Perl, Python and 100% Managed .NET

TA-Lib is available under a BSD License allowing it to be integrated in […]

Merge .NET Assemblies into Single Assembly »

ILMerge is a utility for merging multiple .NET assemblies into a single .NET assembly. It works on executables and DLLs alike and comes with several options for controlling the processing and format of the output. See the accompanying documentation for details.
ILMerge is a utility that can be used to merge multiple .NET assemblies into a […]

Open Source .NET Service Bus »

MassTransit
MassTransit is lean service bus implementation for building loosely coupled applications using the .NET framework.

The lean implementation is supported by the YAGNI principle. By focusing on a tight set of specific concerns, the touch points between Mass Transit and the application are minimized resulting in a clear and concise set of interfaces.
NServiceBus
Designed for collaboration […]

C# Outlook Message Viewer »

Download Source Code
I need to parse and display the content of Outlook msg file. Obviously this is not as simple as what I initially thought.
There is a useful piece of code available in CodeProject but it has problem retrieving OLE embedded object.
Well, exactly there is another article which describes how to resolve this problem.
Using […]

ASP.NET RTF Control »

The key feature of the RTE is to support WYSIWYG along with the following generic feature set below. The key goal has been to encapsulate all the complex functionality of web based rich text editing into a single control.
All that you need is to drop the control dll into your bin directory, and include […]

Free .NET Profiler »

Here are some alternative to Visual Studio Team System Profiler if you are looking for free .NET profiler tools
The CLR Profiler includes a number of very useful views of the allocation profile, including a histogram of allocated types, allocation and call graphs, a time line showing GCs of various generations and the resulting state of […]