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
Post a Comment