title: How to check if a string contains some part of another string in C#?
body: <pre><code>String1 = "12345"
  String2 = "12abc"
  </code></pre>
  
  <p>I want to return <code>true</code> if <code>String1</code> contains some part of <code>String2</code>. In this example String2 has "12" which exists in String1. So For example <code>String1.Contains(String2)</code> should return <code>true</code>.</p>
  
  <p>How Can I make such <code>'Contains'</code> Function?</p>