Advertisement
This is comment for paste
Assembly Reload safe initialization
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Visual Studio snippet:
- <?xml version="1.0" encoding="utf-8"?>
- <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
- <CodeSnippet Format="1.0.0">
- <Header>
- <Title>Initialize OnAssemblyReload</Title>
- <Shortcut>onassemblyreload</Shortcut>
- </Header>
- <Snippet>
- <Code Language="csharp" Delimiter="$">
- <![CDATA[private void Start() => Initialize();
- private void OnEnable() => this.OnAssemblyReload(Initialize);
- private void Initialize()
- {
- $selected$$end$
- }$end$]]></Code>
- </Snippet>
- </CodeSnippet>
- </CodeSnippets>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement