Click here to Skip to main content
15,885,366 members
Articles / Programming Languages / C#

Extended Strongly Typed Resource Generator

Rate me:
Please Sign up or sign in to vote.
4.87/5 (74 votes)
31 Mar 2009CDDL8 min read 762K   6K   138  
An extended version of a strongly typed resource generator, with formatting support.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration.Install;
using System.Security.Permissions;

namespace ResXFileCodeGeneratorEx.Setup.CustomTool.CustomAction
{
    [RunInstaller(true)]
    public partial class CustomToolInstaller : Installer
    {
        public CustomToolInstaller()
        {
            InitializeComponent();
        }

        [SecurityPermission(SecurityAction.Demand)]
        public override void Install(System.Collections.IDictionary stateSaver)
        {
            base.Install(stateSaver);

            DMKSoftware.CodeGenerators.BaseResXFileCodeGeneratorEx.ComRegisterFunction(null);
        }

        [SecurityPermission(SecurityAction.Demand)]
        public override void Uninstall(System.Collections.IDictionary savedState)
        {
            base.Uninstall(savedState);

            DMKSoftware.CodeGenerators.BaseResXFileCodeGeneratorEx.ComUnregisterFunction(null);
        }
    }
}

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 Common Development and Distribution License (CDDL)


Written By
Team Leader Corrigo, Inc.
United States United States
Dmytro is Dev. Lead working for Corrigo, Inc. He has been programming for more than 10 years. He is a Microsoft MCSD for Visual C++ and Visual C#.

Dmytro's programming experience includes C/C++, MFC, STL, ATL, .NET Framework 1.x/2.0, ASP/ASP.NET, C#, WSE and many other interesting technologies.

Comments and Discussions