Getting error like cannot convert from 'string' to 'char'
Use below code.
public void CheckMailFomat() { string s = "mahesh.reddy@tcs.com"; if (s.Split('@')[1].ToLower() == "tcs.com") { // Send mail. } else { // Don't send mail. } }
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.