I use Visual Studio 2010, C#, .Net 4.0; Excel 2007 Add-In project.
Why I see 2 different declarations of the class ThisAddIn
in the Add-In project?
a) the first one in the file ThisAddIn.cs
public partial class ThisAddIn
b) the second one in the file ThisAddIn.Designer.cs
public sealed partial class ThisAddIn : Microsoft.Office.Tools.AddInBase
How these two declarations are interrelated? Does it really specifies two separate classes or it essentially defines one class?
When I scroll down the file ThisAddIn.Designer.cs, I see the following lines:
internal sealed partial class Globals {
private Globals() {
}
private static ThisAddIn _ThisAddIn;
.....
}
Which class (out of two mentioned above) is being used in the line private static ThisAddIn _ThisAddIn;
?
Thanks a lot for any help!