c# - How to determine if SearchPattern effects extension of file? -


I am currently directory from .NET from -class in me and I want to know Whether the search port is defining an extension or not.

For example: If I "code"> GetFiles - I do as a pattern for the method to "Halo_warld" I clearly a detail.

If I have * * * For this method, would allow all extensions that I have it "* .docx", then allow all dock-file.

How do I get an extension from the search bar?

What extensions ('.'). LastOrDefault () always in> only extension is - if no extension has been declared or in cases where Khojpatrn separate Allow different things and so can I find some solution in this solution?

Regards

"I like looking for patterns .. .. \ xyz" or "Xyz" can not think where your method will not work as expected. The first case is not permitted by implementation (see in the description of parameter searchPattern ). I do not know the second case is valid.

Apart from this, only * and? There are wildcards, while all other letters are the same. I can not think of another search method where your method will not return an extension.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -