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

.NET (Core and Framework)

 
AnswerRe: ASP.NET Pin
sankarsan parida11-May-14 23:51
professionalsankarsan parida11-May-14 23:51 
QuestionSorting of Vehicle Numbers Pin
vasuarya26-Mar-14 0:05
vasuarya26-Mar-14 0:05 
AnswerRe: Sorting of Vehicle Numbers Pin
Simon_Whale26-Mar-14 0:21
Simon_Whale26-Mar-14 0:21 
AnswerRe: Sorting of Vehicle Numbers Pin
Pete O'Hanlon26-Mar-14 0:35
mvePete O'Hanlon26-Mar-14 0:35 
AnswerRe: Sorting of Vehicle Numbers Pin
jschell26-Mar-14 11:50
jschell26-Mar-14 11:50 
Questionstatic Math vs sealed Application Pin
Mirani Ajay25-Mar-14 23:58
Mirani Ajay25-Mar-14 23:58 
AnswerRe: static Math vs sealed Application Pin
Eddy Vluggen26-Mar-14 4:03
professionalEddy Vluggen26-Mar-14 4:03 
AnswerRe: static Math vs sealed Application Pin
Dave Kreskowiak26-Mar-14 4:18
mveDave Kreskowiak26-Mar-14 4:18 
GeneralRe: static Math vs sealed Application Pin
Eddy Vluggen26-Mar-14 6:08
professionalEddy Vluggen26-Mar-14 6:08 
GeneralRe: static Math vs sealed Application Pin
Dave Kreskowiak26-Mar-14 6:12
mveDave Kreskowiak26-Mar-14 6:12 
AnswerRe: static Math vs sealed Application Pin
Richard Deeming26-Mar-14 6:25
mveRichard Deeming26-Mar-14 6:25 
AnswerRe: static Math vs sealed Application Pin
jschell26-Mar-14 11:52
jschell26-Mar-14 11:52 
QuestionNepali Unicode Pin
mebishnu22-Mar-14 22:01
mebishnu22-Mar-14 22:01 
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 
GeneralRe: FXCop (VS 2013 Pro) and private P/Invoke methods Pin
obermd26-Mar-14 8:56
obermd26-Mar-14 8:56 
I can see your point, but when you consider that many of the WinAPIs are designed to work as teams and some of them you have to call twice to get the actual size of the data before you can use the call to get the data my position is that if I have a dotNet class that is the sole user of an API call it should have the P/Invoke interface internally.

Obviously if it's an API call that will be used in multiple places it should be in a global NativeMethods static class.

I just had a thought - what if I create a private NativeMethods static class for this object? I'll have to give that a try this evening. That would have dual benefits - the API calls will be obvious when reading the class source and it keeps APIs that are specific to supporting that class in the class source code and not dependent on another source file.
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 

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.