Click here to Skip to main content
15,214,506 members
   

C#

 
GeneralRe: question about a method program Pin
Richard MacCutchan23-May-20 22:57
mveRichard MacCutchan23-May-20 22:57 
GeneralRe: question about a method program Pin
F-ES Sitecore24-May-20 6:48
mveF-ES Sitecore24-May-20 6:48 
GeneralRe: question about a method program Pin
Richard MacCutchan24-May-20 6:57
mveRichard MacCutchan24-May-20 6:57 
GeneralRe: question about a method program Pin
F-ES Sitecore24-May-20 7:34
mveF-ES Sitecore24-May-20 7:34 
GeneralRe: question about a method program Pin
Member 798912224-May-20 7:40
MemberMember 798912224-May-20 7:40 
GeneralRe: question about a method program Pin
F-ES Sitecore24-May-20 8:09
mveF-ES Sitecore24-May-20 8:09 
GeneralRe: question about a method program Pin
Joanna Moses13-Jun-20 5:41
MemberJoanna Moses13-Jun-20 5:41 
QuestionHow to know if a disk is magnetic or flash Pin
Member 798912222-May-20 13:43
MemberMember 798912222-May-20 13:43 
Win 10, C#:

wmic calls give me the "drive type" as a small integer, a System.IO.drivetype value, running from 0 to 6. All standard disks are drive type 3, "Fixed" (or possibly type 4, "Network").

Is there any general way to distinguish between flash and magnetic "Fixed" disks? I know that I could check the manfacturer's id against a huge table identifying all the disks of all manufacturers ... There obviously is a simpler, more general way: Windows handles flash disks differently from magnetic disks. So how does Windows distinguish - and how can I do the same?

Yes, I could try to do some accesses and decide based on timing. I do not consider that a clean solution. There must be a better one, but which?
AnswerRe: How to know if a disk is magnetic or flash Pin
OriginalGriff22-May-20 20:46
mveOriginalGriff22-May-20 20:46 
GeneralRe: How to know if a disk is magnetic or flash Pin
Member 798912223-May-20 6:45
MemberMember 798912223-May-20 6:45 
GeneralRe: How to know if a disk is magnetic or flash Pin
OriginalGriff23-May-20 9:14
mveOriginalGriff23-May-20 9:14 
QuestionIs it possible to apply a custom filter (i.e. my own delegate) to a DataTable? Pin
arnold_w22-May-20 4:29
Memberarnold_w22-May-20 4:29 
AnswerRe: Is it possible to apply a custom filter (i.e. my own delegate) to a DataTable? Pin
Richard MacCutchan22-May-20 5:32
mveRichard MacCutchan22-May-20 5:32 
GeneralRe: Is it possible to apply a custom filter (i.e. my own delegate) to a DataTable? Pin
arnold_w22-May-20 9:43
Memberarnold_w22-May-20 9:43 
GeneralRe: Is it possible to apply a custom filter (i.e. my own delegate) to a DataTable? Pin
arnold_w24-May-20 21:02
Memberarnold_w24-May-20 21:02 
GeneralRe: Is it possible to apply a custom filter (i.e. my own delegate) to a DataTable? Pin
Richard Deeming27-May-20 0:27
mveRichard Deeming27-May-20 0:27 
GeneralRe: Is it possible to apply a custom filter (i.e. my own delegate) to a DataTable? Pin
arnold_w27-May-20 2:44
Memberarnold_w27-May-20 2:44 
GeneralRe: Is it possible to apply a custom filter (i.e. my own delegate) to a DataTable? Pin
Richard Deeming27-May-20 2:55
mveRichard Deeming27-May-20 2:55 
GeneralRe: Is it possible to apply a custom filter (i.e. my own delegate) to a DataTable? Pin
arnold_w27-May-20 4:05
Memberarnold_w27-May-20 4:05 
AnswerRe: Is it possible to apply a custom filter (i.e. my own delegate) to a DataTable? Pin
Richard Deeming22-May-20 6:09
mveRichard Deeming22-May-20 6:09 
QuestionCan I show my data in a C# table, even though all the data is not in a single List/array? Pin
arnold_w21-May-20 20:06
Memberarnold_w21-May-20 20:06 
AnswerRe: Can I show my data in a C# table, even though all the data is not in a single List/array? Pin
OriginalGriff21-May-20 20:29
mveOriginalGriff21-May-20 20:29 
GeneralRe: Can I show my data in a C# table, even though all the data is not in a single List/array? Pin
arnold_w21-May-20 20:45
Memberarnold_w21-May-20 20:45 
AnswerRe: Can I show my data in a C# table, even though all the data is not in a single List/array? Pin
arnold_w22-May-20 0:17
Memberarnold_w22-May-20 0:17 
GeneralRe: Can I show my data in a C# table, even though all the data is not in a single List/array? Pin
Richard MacCutchan22-May-20 0:40
mveRichard MacCutchan22-May-20 0:40 

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.