Click here to Skip to main content
15,883,825 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Nepali Unicode Pin
Richard MacCutchan23-Mar-14 1:46
mveRichard MacCutchan23-Mar-14 1:46 
AnswerRe: Nepali Unicode Pin
Bernhard Hiller23-Mar-14 21:46
Bernhard Hiller23-Mar-14 21:46 
GeneralRe: Nepali Unicode Pin
mebishnu16-Apr-14 0:27
mebishnu16-Apr-14 0:27 
AnswerRe: Nepali Unicode Pin
jschell24-Mar-14 8:26
jschell24-Mar-14 8:26 
Questionhow to set specific time in windows service Pin
ven75322-Mar-14 19:36
ven75322-Mar-14 19:36 
AnswerRe: how to set specific time in windows service Pin
Peter Leow22-Mar-14 20:31
professionalPeter Leow22-Mar-14 20:31 
QuestionFXCop (VS 2013 Pro) and private P/Invoke methods Pin
obermd22-Mar-14 12:00
obermd22-Mar-14 12:00 
AnswerRe: FXCop (VS 2013 Pro) and private P/Invoke methods Pin
Eddy Vluggen26-Mar-14 8:10
professionalEddy Vluggen26-Mar-14 8:10 
obermd wrote:
My question is what is considered correct?
Whatever you want it to be.

obermd wrote:
I consider this to be erroneous because following this advise breaks OO design.
OO-design are guidelines; you won't go to jail if you break them.

I think FxCop is giving good advice here, as the WinAPI is a giant black box we interop to. It's a single, static object. It's also not much work to have an extra class as a layer in between - you'd simply be calling a static method on a static class, instead of interop directly. The huge (!) advantage is that all your WinAPI prototypes are centralized. That makes maintenance easier; I'd rather update the signature once then in a dozen classes.

TL;DR: following OO-design would break the DRY-principle.
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]

GeneralRe: FXCop (VS 2013 Pro) and private P/Invoke methods Pin
obermd26-Mar-14 8:56
obermd26-Mar-14 8:56 
GeneralRe: FXCop (VS 2013 Pro) and private P/Invoke methods Pin
obermd26-Mar-14 13:31
obermd26-Mar-14 13:31 
QuestionError on System.Web.Helpers.WebMail.Send() method in TFS 2012 Pin
trevor1519-Mar-14 4:04
trevor1519-Mar-14 4:04 
AnswerRe: Error on System.Web.Helpers.WebMail.Send() method in TFS 2012 Pin
Richard MacCutchan19-Mar-14 4:19
mveRichard MacCutchan19-Mar-14 4:19 
QuestionGetting "Handle" of DirectX Output inside a WPF Window/Containter... Pin
Christopher Koeber18-Mar-14 11:29
Christopher Koeber18-Mar-14 11:29 
QuestionIOCContainer nested dependencies and failed resolves Pin
preaa10-Mar-14 23:38
preaa10-Mar-14 23:38 
AnswerRe: IOCContainer nested dependencies and failed resolves Pin
Pete O'Hanlon11-Mar-14 12:05
mvePete O'Hanlon11-Mar-14 12:05 
GeneralRe: IOCContainer nested dependencies and failed resolves Pin
preaa11-Mar-14 21:38
preaa11-Mar-14 21:38 
GeneralRe: IOCContainer nested dependencies and failed resolves Pin
Pete O'Hanlon11-Mar-14 21:50
mvePete O'Hanlon11-Mar-14 21:50 
QuestionCréation d'un outil intelligent pour la vidéosurveillance" with vb.net 2008 Pin
Sahal Meriem10-Mar-14 9:32
Sahal Meriem10-Mar-14 9:32 
AnswerRe: Création d'un outil intelligent pour la vidéosurveillance" with vb.net 2008 Pin
Dave Kreskowiak10-Mar-14 10:11
mveDave Kreskowiak10-Mar-14 10:11 
QuestionError: Unable to cast object of type 'System.Data.DataRowView' to type 'System.IConvertible' Pin
Member 105062157-Mar-14 3:12
Member 105062157-Mar-14 3:12 
AnswerRe: Error: Unable to cast object of type 'System.Data.DataRowView' to type 'System.IConvertible' Pin
Richard MacCutchan7-Mar-14 7:25
mveRichard MacCutchan7-Mar-14 7:25 
GeneralRe: Error: Unable to cast object of type 'System.Data.DataRowView' to type 'System.IConvertible' Pin
Member 1050621510-Mar-14 4:30
Member 1050621510-Mar-14 4:30 
GeneralRe: Error: Unable to cast object of type 'System.Data.DataRowView' to type 'System.IConvertible' Pin
melquimoises10-Mar-14 12:15
melquimoises10-Mar-14 12:15 
GeneralRe: Error: Unable to cast object of type 'System.Data.DataRowView' to type 'System.IConvertible' Pin
melquimoises28-Mar-14 6:46
melquimoises28-Mar-14 6:46 
GeneralRe: Error: Unable to cast object of type 'System.Data.DataRowView' to type 'System.IConvertible' Pin
melquimoises28-Mar-14 6:46
melquimoises28-Mar-14 6:46 

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.