Click here to Skip to main content
15,888,733 members
Home / Discussions / C#
   

C#

 
GeneralRe: Generic interface and generic delegate in simple terms. Pin
Simon_Whale14-Apr-15 5:16
Simon_Whale14-Apr-15 5:16 
GeneralRe: Generic interface and generic delegate in simple terms. Pin
Pete O'Hanlon14-Apr-15 5:53
mvePete O'Hanlon14-Apr-15 5:53 
GeneralRe: Generic interface and generic delegate in simple terms. Pin
BillWoodruff14-Apr-15 7:13
professionalBillWoodruff14-Apr-15 7:13 
GeneralRe: Generic interface and generic delegate in simple terms. Pin
Pete O'Hanlon14-Apr-15 7:22
mvePete O'Hanlon14-Apr-15 7:22 
GeneralRe: Generic interface and generic delegate in simple terms. Pin
Gyana_Ranjan Dash14-Apr-15 19:30
Gyana_Ranjan Dash14-Apr-15 19:30 
GeneralRe: Generic interface and generic delegate in simple terms. Pin
Pete O'Hanlon14-Apr-15 20:03
mvePete O'Hanlon14-Apr-15 20:03 
AnswerRe: Generic interface and generic delegate in simple terms. Pin
BillWoodruff14-Apr-15 8:05
professionalBillWoodruff14-Apr-15 8:05 
GeneralRe: Generic interface and generic delegate in simple terms. Pin
Richard Deeming14-Apr-15 9:18
mveRichard Deeming14-Apr-15 9:18 
You've added a generic type parameter to the IPersist<T> interface, but you don't seem to use it anywhere. You'd get the same result with a non-generic interface.

The serializer field on your Persistence<T> class should be a local variable in both methods. There's no need to expose it to the outside world, and your current implementation is not thread-safe.

You've also missed the set; (or the body of the get;) on the FilePath auto-property.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: Generic interface and generic delegate in simple terms. Pin
BillWoodruff14-Apr-15 12:21
professionalBillWoodruff14-Apr-15 12:21 
GeneralRe: Generic interface and generic delegate in simple terms. Pin
Richard Deeming15-Apr-15 1:03
mveRichard Deeming15-Apr-15 1:03 
GeneralRe: Generic interface and generic delegate in simple terms. Pin
BillWoodruff15-Apr-15 2:58
professionalBillWoodruff15-Apr-15 2:58 
GeneralRe: Generic interface and generic delegate in simple terms. Pin
Sascha Lefèvre15-Apr-15 3:39
professionalSascha Lefèvre15-Apr-15 3:39 
GeneralRe: Generic interface and generic delegate in simple terms. Pin
Pete O'Hanlon14-Apr-15 9:32
mvePete O'Hanlon14-Apr-15 9:32 
GeneralRe: Generic interface and generic delegate in simple terms. Pin
BillWoodruff14-Apr-15 12:35
professionalBillWoodruff14-Apr-15 12:35 
GeneralRe: Generic interface and generic delegate in simple terms. Pin
Pete O'Hanlon14-Apr-15 20:37
mvePete O'Hanlon14-Apr-15 20:37 
GeneralRe: Generic interface and generic delegate in simple terms. Pin
Eddy Vluggen14-Apr-15 10:16
professionalEddy Vluggen14-Apr-15 10:16 
GeneralRe: Generic interface and generic delegate in simple terms. Pin
BillWoodruff14-Apr-15 12:41
professionalBillWoodruff14-Apr-15 12:41 
GeneralRe: Generic interface and generic delegate in simple terms. Pin
Eddy Vluggen15-Apr-15 0:24
professionalEddy Vluggen15-Apr-15 0:24 
GeneralRe: Generic interface and generic delegate in simple terms. Pin
BillWoodruff15-Apr-15 3:08
professionalBillWoodruff15-Apr-15 3:08 
GeneralRe: Generic interface and generic delegate in simple terms. Pin
Eddy Vluggen15-Apr-15 3:16
professionalEddy Vluggen15-Apr-15 3:16 
QuestionHow do I get images without using picturebox? Pin
Member 1138819913-Apr-15 22:29
Member 1138819913-Apr-15 22:29 
AnswerRe: How do I get images without using picturebox? Pin
Richard MacCutchan13-Apr-15 23:25
mveRichard MacCutchan13-Apr-15 23:25 
GeneralRe: How do I get images without using picturebox? Pin
Member 1138819913-Apr-15 23:59
Member 1138819913-Apr-15 23:59 
GeneralRe: How do I get images without using picturebox? Pin
Richard MacCutchan14-Apr-15 0:02
mveRichard MacCutchan14-Apr-15 0:02 
GeneralRe: How do I get images without using picturebox? Pin
Member 1138819914-Apr-15 0:07
Member 1138819914-Apr-15 0:07 

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.