<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  <CodeSnippet Format="1.0.0">
    <Header>
      <Title>Kill Excel Object</Title>
      <Shortcut>KillExcelObject</Shortcut>
      <Description>Code snippet for killing a Excel interop object.</Description>
      <Author>Sameer Sayani</Author>
      <SnippetTypes>
        <SnippetType>Expansion</SnippetType>
      </SnippetTypes>
    </Header>
    <Snippet>
      <Imports><Import><Namespace>System.Diagnostics</Namespace></Import></Imports>
      <Code Language="csharp"><![CDATA[foreach (Process clsProcess in Process.GetProcesses())if (clsProcess.ProcessName.Equals("EXCEL"))  //Process Excel?clsProcess.Kill();]]>
      </Code>
    </Snippet>
  </CodeSnippet>
</CodeSnippets>
