GoogleTalkPlugIn.GoogleTalkMessagingService.CanFind C# (CSharp) Méthode

CanFind() public méthode

public CanFind ( string address ) : bool
address string
Résultat bool
        public bool CanFind(string address)
        {
            // If the address contains an ampersand it can't start with it
            // or it just shouldn't have one at all.
            return address != null &&
                   address.Trim() != String.Empty &&
                   (
                       (
                            (!address.StartsWith("@") && address.Contains("@")
                       ) ||
                       !address.Contains("@"))
                   );
        }