Click here to Skip to main content
15,914,074 members
Home / Discussions / C#
   

C#

 
AnswerRe: Create a .NET dll Pin
Christian Graus6-Jan-07 12:15
protectorChristian Graus6-Jan-07 12:15 
QuestionRe: Create a .NET dll Pin
Tyler456-Jan-07 13:22
Tyler456-Jan-07 13:22 
AnswerRe: Create a .NET dll Pin
Christian Graus6-Jan-07 14:18
protectorChristian Graus6-Jan-07 14:18 
QuestionRe: Create a .NET dll Pin
Tyler457-Jan-07 19:56
Tyler457-Jan-07 19:56 
AnswerRe: Create a .NET dll Pin
Christian Graus7-Jan-07 22:51
protectorChristian Graus7-Jan-07 22:51 
QuestionMaskedTextBox Pin
CodeItWell6-Jan-07 1:21
CodeItWell6-Jan-07 1:21 
AnswerRe: MaskedTextBox Pin
Tyler456-Jan-07 1:30
Tyler456-Jan-07 1:30 
QuestionForcing static implementation... Pin
Shy Agam6-Jan-07 1:14
Shy Agam6-Jan-07 1:14 
Hi,

I'm currently working on a library which deals with sockets.
One of the classes I wrote is Buffer, which is generic.
It is declared like so:
public class Buffer<TPack> where TPack : IPack<TPack> { ... }
The IPack interface defines, amongst others, the following function signature:
TPack FromReceivedData(byte[] data, int startIndex);
My problem is to force the implementers to declare FromReceivedData() as static.
Interfaces do not allow it.

What should I do?

Hopefully I've supplied enough information. Smile | :)
If you need to know more in order to understand the problem, please tell me and I'll post some more code snippets.

Thanks in advance,
Shy.
AnswerRe: Forcing static implementation... Pin
Ennis Ray Lynch, Jr.6-Jan-07 8:09
Ennis Ray Lynch, Jr.6-Jan-07 8:09 
AnswerRe: Forcing static implementation... Pin
Guffa6-Jan-07 9:11
Guffa6-Jan-07 9:11 
Questiongetting the line number of a sentence (word document) Pin
hofi19856-Jan-07 1:10
hofi19856-Jan-07 1:10 
QuestionIDeserializationCallback.OnDeserialization() not called Pin
dubbaluga6-Jan-07 1:06
dubbaluga6-Jan-07 1:06 
QuestionC# High School Project Pin
makemoneyfast6-Jan-07 1:01
makemoneyfast6-Jan-07 1:01 
AnswerRe: C# High School Project Pin
Cormac M Redmond6-Jan-07 1:19
Cormac M Redmond6-Jan-07 1:19 
GeneralRe: C# High School Project Pin
makemoneyfast6-Jan-07 1:33
makemoneyfast6-Jan-07 1:33 
GeneralRe: C# High School Project Pin
User 66586-Jan-07 4:03
User 66586-Jan-07 4:03 
GeneralRe: C# High School Project Pin
makemoneyfast6-Jan-07 4:49
makemoneyfast6-Jan-07 4:49 
GeneralRe: C# High School Project Pin
Cormac M Redmond6-Jan-07 9:00
Cormac M Redmond6-Jan-07 9:00 
AnswerDefinately ambitious Pin
Ennis Ray Lynch, Jr.6-Jan-07 8:14
Ennis Ray Lynch, Jr.6-Jan-07 8:14 
GeneralRe: Definately ambitious Pin
makemoneyfast6-Jan-07 10:28
makemoneyfast6-Jan-07 10:28 
GeneralI was assumming Pin
Ennis Ray Lynch, Jr.6-Jan-07 11:20
Ennis Ray Lynch, Jr.6-Jan-07 11:20 
GeneralRe: I was assumming Pin
makemoneyfast6-Jan-07 13:06
makemoneyfast6-Jan-07 13:06 
QuestionSimple interface question...Help!! Pin
Cormac M Redmond6-Jan-07 0:42
Cormac M Redmond6-Jan-07 0:42 
AnswerRe: Simple interface question...Help!! Pin
Shy Agam6-Jan-07 1:01
Shy Agam6-Jan-07 1:01 
GeneralRe: Simple interface question...Help!! Pin
Cormac M Redmond6-Jan-07 1:18
Cormac M Redmond6-Jan-07 1:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.