DYNAMIC IN C#(blogs.msdn.com)
submitted by
samng(135) 3 years, 1 month ago
The other day I was playing around with some office code, and I found myself writing a lot of code much like the following sample that Anders used at his PDC talk:
static void Main(string[] args)
{
var xl = new Excel.Application();
((Excel.Range)xl.Cells[1, 1]).Value2 = "Process Name";
((Excel.Range)xl.Cells[1, 2]).Value2 = "Memory Usage";
}
|category: C#
|Views: 20
tags:
C# another
Everyones tags:
Your Tags: