01.
using
System;
02.
using
System.Runtime.InteropServices;
03.
namespace
MyDLL
04.
{
05.
[ComVisible(
true
)]
06.
public
class
Operations
07.
{
08.
[ComVisible(
true
)]
09.
public
string
getValue1(
string
sParameter)
10.
{
11.
switch
(sParameter)
12.
{
13.
case
"a"
:
14.
return
"A was chosen"
;
15.
16.
case
"b"
:
17.
return
"B was chosen"
;
18.
19.
case
"c"
:
20.
return
"C was chosen"
;
21.
22.
default
:
23.
return
"Other"
;
24.
}
25.
}
26.
public
string
getValue2()
27.
{
28.
return
"From VBS String Function"
;
29.
}
30.
}
31.
}