471,090 Members | 1,713 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Placing Structs and Enums in Interface - should i?

Hi there,

I am wondering when i had a class that extends an interface (currently in my
interface i only had methods), but should i also extend Struct, Enum or even
P/Invoke methods?

If it can, how do i code struct or enum or p/invoke in an interface???

just say my struct is:

[StructLayout(LayoutKind.Sequential)]
public struct TestA
{
public byte ab;
public byte[] bc;
}

public enum TestB : Byte
{
num1 = 0,
num2 = 10
};

[DllImport("somedll.dll")]
public static extern int TestC();

Any idea, please?

Thanks.
--
Regards,
Chua Wen Ching :)
Nov 16 '05 #1
0 991

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

13 posts views Thread by SpaceCowboy | last post: by
4 posts views Thread by news.microsoft.com | last post: by
17 posts views Thread by Johan Tibell | last post: by
13 posts views Thread by Bob | last post: by
29 posts views Thread by Dom | last post: by
1 post views Thread by DaTurk | last post: by
16 posts views Thread by andreyvul | last post: by
24 posts views Thread by Alexander Mahone | last post: by

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.