Skip to content

Instantly share code, notes, and snippets.

@pvandenheede
Created May 31, 2016 20:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pvandenheede/0180db46c9957d2b146cdd3b7b04de91 to your computer and use it in GitHub Desktop.
Save pvandenheede/0180db46c9957d2b146cdd3b7b04de91 to your computer and use it in GitHub Desktop.
ExtensionElement e = new ExtensionElement("MyName", "MyType, MyNamespace.MyType, Version=1.0.0.0, Culture=neutral, PublicKeyToken=4275f802b89cdd22");
extensions.BehaviorExtensions.Add(e);
extensions.SectionInformation.ForceSave = true;
config.Save(ConfigurationSaveMode.Full);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment