Skip to content

Instantly share code, notes, and snippets.

@TSKGunGun
Last active June 15, 2016 21:36
Show Gist options
  • Save TSKGunGun/25733a098ee0719b897dcfd246dd9505 to your computer and use it in GitHub Desktop.
Save TSKGunGun/25733a098ee0719b897dcfd246dd9505 to your computer and use it in GitHub Desktop.
VBAで.NETが使えるか検証するコード
Public Sub NETTest()
Dim A As Object
Set A = CreateObject("System.Collections.ArrayList")
End Sub
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections;
namespace NETTest
{
class Program
{
static void Main(string[] args)
{
ArrayList Data = new ArrayList();
Data.Add("Test");
Data.Add("Test2");
foreach( var value in Data) {
Console.WriteLine(value);
}
Console.ReadLine();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment