Click here to Skip to main content
15,880,796 members
Articles / Programming Languages / MSIL

Assembly Manipulation and C# / VB.NET Code Injection

Rate me:
Please Sign up or sign in to vote.
4.95/5 (200 votes)
26 Apr 2013MIT5 min read 920.8K   25K   486  
Reflexil is an assembly editor and runs as a plug-in for Reflector or JustDecompile. Reflexil is able to manipulate IL code and save the modified assemblies to disk. Reflexil also supports "on-the-fly" C#/VB.NET code injection.
/*
    Reflexil .NET assembly editor.
    Copyright (C) 2007 Sebastien LEBRETON

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

namespace Reflexil.Compilation
{
    enum ECSharpKeyword
    {
        @abstract,
        @event,
        @new,
        @struct,
        @as,
        @explicit,
        @null,
        @switch,
        @base,
        @extern,
        @object,
        @this,
        @bool,
        @false,
        @operator,
        @throw,
        @break,
        @finally,
        @out,
        @true,
        @byte,
        @fixed,
        @override,
        @try,
        @case,
        @float,
        @params,
        @typeof,
        @catch,
        @for,
        @private,
        @uint,
        @char,
        @foreach,
        @protected,
        @ulong,
        @checked,
        @goto,
        @public,
        @unchecked,
        @class,
        @if,
        @readonly,
        @unsafe,
        @const,
        @implicit,
        @ref,
        @ushort,
        @continue,
        @in,
        @return,
        @using,
        @decimal,
        @int,
        @sbyte,
        @virtual,
        @default,
        @interface,
        @sealed,
        @volatile,
        @delegate,
        @internal,
        @short,
        @void,
        @do,
        @is,
        @sizeof,
        @while,
        @double,
        @lock,
        @stackalloc,
        @else,
        @long,
        @static,
        @enum,
        @namespace,
        @string,
        @from,
        @get,
        @group,
        @into,
        @join,
        @let,
        @orderby,
        @partial,
        @select,
        @set,
        @value,
        @where,
        @yield
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The MIT License


Written By
Software Developer (Senior) Microsoft
United States United States
Sebastien Lebreton is a Software Engineer at Microsoft.

He is particularly interested in optimization, reverse engineering and distributed objects technologies.

Comments and Discussions