Click here to Skip to main content
15,883,990 members
Home / Discussions / C#
   

C#

 
GeneralRe: Hi Pin
Richard MacCutchan17-Jan-13 22:56
mveRichard MacCutchan17-Jan-13 22:56 
Questionneed a help Pin
helibell16-Jan-13 20:22
helibell16-Jan-13 20:22 
AnswerRe: need a help Pin
dan!sh 16-Jan-13 20:26
professional dan!sh 16-Jan-13 20:26 
QuestionRe: need a help Pin
helibell16-Jan-13 20:35
helibell16-Jan-13 20:35 
AnswerRe: need a help Pin
dan!sh 16-Jan-13 20:47
professional dan!sh 16-Jan-13 20:47 
QuestionRe: need a help Pin
helibell16-Jan-13 21:08
helibell16-Jan-13 21:08 
AnswerRe: need a help Pin
Bire50t16-Jan-13 21:57
Bire50t16-Jan-13 21:57 
QuestionC# use linq for on filename Pin
dcof16-Jan-13 19:24
dcof16-Jan-13 19:24 
In a C# 2008 desktop application, I can using the following statement to select error reports that are displayed on excel spreadsheets:
string[] excelFiles = Directory.GetFiles(strFullpath, "*ErrorReport.xlsx")
                           .Select(path => Path.GetFileName(path))
                           .ToArray(); 

Due to the above, I have the following questions:
1. if I want to change the statement to select either "*bErrorReport.xlsx" or "*dErrorReport.xlsx" or "*ErrorReport.xlsx",
how would I change the statement I just displayed?
2. The above statement picks 3 excel spreadsheets and there are really only two excel spreadsheets. The excelspreadshets that are valid
include:
customer_number_bErrorReport.xlsx,
and customer_number_ErrorReport.xlsx.

The invalid value that is selected is
~customer_number_bErrorReport.xlsx.

Can you show me the code, so an invalid spreadsheet called ~customer_number_bErrorReport.xlsx is not selected?
AnswerRe: C# use linq for on filename Pin
dan!sh 16-Jan-13 20:08
professional dan!sh 16-Jan-13 20:08 
GeneralRe: C# use linq for on filename Pin
dcof17-Jan-13 8:19
dcof17-Jan-13 8:19 
AnswerRe: C# use linq for on filename Pin
Eddy Vluggen17-Jan-13 0:35
professionalEddy Vluggen17-Jan-13 0:35 
GeneralRe: C# use linq for on filename Pin
dcof17-Jan-13 8:18
dcof17-Jan-13 8:18 
QuestionRead every single keyboard press? [solved] Pin
Midnight Ahri16-Jan-13 15:24
Midnight Ahri16-Jan-13 15:24 
GeneralRe: Read every single keyboard press? Pin
PIEBALDconsult16-Jan-13 15:34
mvePIEBALDconsult16-Jan-13 15:34 
QuestionRe: Read every single keyboard press? Pin
Midnight Ahri16-Jan-13 15:52
Midnight Ahri16-Jan-13 15:52 
AnswerRe: Read every single keyboard press? Pin
PIEBALDconsult16-Jan-13 15:56
mvePIEBALDconsult16-Jan-13 15:56 
AnswerRe: Read every single keyboard press? Pin
Midnight Ahri16-Jan-13 16:03
Midnight Ahri16-Jan-13 16:03 
GeneralRe: Read every single keyboard press? Pin
PIEBALDconsult16-Jan-13 17:13
mvePIEBALDconsult16-Jan-13 17:13 
GeneralRe: Read every single keyboard press? Pin
pt140116-Jan-13 19:30
pt140116-Jan-13 19:30 
AnswerRe: Read every single keyboard press? Pin
Midnight Ahri16-Jan-13 19:43
Midnight Ahri16-Jan-13 19:43 
GeneralRe: Read every single keyboard press? Pin
pt140116-Jan-13 20:04
pt140116-Jan-13 20:04 
AnswerRe: Read every single keyboard press? Pin
Midnight Ahri16-Jan-13 20:27
Midnight Ahri16-Jan-13 20:27 
AnswerRe: Read every single keyboard press? Pin
Dave Kreskowiak16-Jan-13 17:32
mveDave Kreskowiak16-Jan-13 17:32 
AnswerRe: Read every single keyboard press? Pin
Eddy Vluggen17-Jan-13 0:41
professionalEddy Vluggen17-Jan-13 0:41 
GeneralRe: Read every single keyboard press? Pin
jschell17-Jan-13 8:30
jschell17-Jan-13 8:30 

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.