c# - Search a substring in another string -


string name = "blk000012345summary.pdf"; string filename = "20150929111111zp2zq23blk000012345summary.pdf"; 

i have string name have find in filename, if exists should return true otherwise false.

string name = "blk000012345summary.pdf"; string filename = "20150929111111zp2zq23blk000012345summary.pdf";  bool value = filename.contains(name); 

Comments

Popular posts from this blog

1111. appearing after print sequence - php -

excel - I can't get the attachement of the email PHP -

node.js - Express and Redis - If session exists for this user, don't allow access -