Skip to content

gniax/enum-merge

Repository files navigation

Enum Merge

C# WPF utility for merging and synchronizing enum definitions across source files.

Overview

Enum Merge is a small desktop tool built to simplify enum synchronization between C# files.

It is useful when large enum definitions need to be merged or updated without doing the work manually.

Build

To run the tool, compile the project with .NET Framework 4.8.

Most of the application logic is implemented in MainWindow.xaml.cs.

Use case

This tool is designed to merge and synchronize enum definitions from one file into another.

It can be useful when maintaining large enum lists that need to stay up to date across multiple files.

Limitations

The current implementation only supports simple enum entries in the following format:

enum Fruits
{
    Apple = 1,
    Banana = 2,
    Cherry = 3
}

Example

Target file (Fruits1.cs)

enum Fruits
{
    Apple = 1,
    Banana = 2,
    Cherry = 3,
    Apricot = 6
}

File to integrate (Fruits2.cs)

enum Fruits
{
    Watermelon = 4,
    Cherry = 30,
    Peach = 5
}

Result

enum Fruits
{
    Apple = 1,
    Banana = 2,
    Cherry = 30,
    Watermelon = 4,
    Peach = 5,
    Apricot = 6
}

Conflict handling

If the same enum key exists in both files, the value from the file being integrated is used.

About

C# WPF utility for merging and synchronizing enum definitions across source files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages