473,327 Members | 2,103 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

ClassLibrary Interface Example

Can someone show a (very!) simple C# example class that would implement the
following interface so that MyString could then be written/read from a VB
application?

interface MyInterface

{

string MyString

{

get;

set;

}

}
Thanks for your help!
Nov 16 '05 #1
1 1827
This compiles:

interface MyInt {

string MyStr {

get;

set;

}

}

public class MyCls : MyInt {

public string MyStr {

get {

return "";

}

set {

Console.WriteLine("Value passed: {0}",value);

}

}

}

HTH

Alex

"Tom Roach" <tr****@nationalsteel.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Can someone show a (very!) simple C# example class that would implement the following interface so that MyString could then be written/read from a VB
application?

interface MyInterface

{

string MyString

{

get;

set;

}

}
Thanks for your help!

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Will Waggoner | last post by:
Ok, I've been hung up on this issue for quite some time now and I would like some help in getting it to work. I think this may be a setup issue but I'd like to ask your eminences first. Here's...
1
by: PEACEMAKER | last post by:
I'm writing a custom config file for my classlibrary dll. However when I try to load the config file the directory it points to is the folder of the application that called the dll. Is there a way...
1
by: Tom Roach | last post by:
Need to create first simple C# ClassLibrary with string property accessible from VB 6.0 application. Have .NET-created, regasm-registered, and VB-accessed a prototype --> VB can "see" the property...
5
by: Wayne Gibson | last post by:
Hi, Was wondering if anybody could help. I'm slowly trying to migrate over to the .NET using windows forms, but still have a need to support existing systems developed in MSVC 6 using MFC and...
3
by: Rene | last post by:
I notice that VS lets you choose to create a WindowsControlLibrary and ClassLibrary, I created a class library and then added a user control and it let me do that. I am assuming that the opposite...
7
by: A.M-SG | last post by:
Hi, We have a class library application that needs to read some application settings from it's own app.config file. I assume that a ClassLibrary.DLL can have a app.config file, but...
2
by: Poobalam | last post by:
Hi, I just got VS.NET 2005. It has a new template called WebControlLibrary. I normally use ClassLibrary to build my business logic and use that dll into ASP.NET project. However I'm assuming...
7
by: Stefan | last post by:
Hi! I´m creating a classlibrary project. The output will be a dll. This dll will have to read some settings from some kind of config-file. Normally, when creating a standard .exe-program I use...
1
by: Janus | last post by:
Hi all, I've got a third party class library that i want to use in an 'old' MFC project (actually i need it in a Borland C++ builder project, but if i can use it in MFC i propably can convert it...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.