public override bool ComapreAttributes(ObjectAttribute RemoteAttribute) { if (RemoteAttribute.GetAttributeType() != AttributeType.Integer) return false; ObjectAttributeInt lRemoteAttribute = (ObjectAttributeInt)RemoteAttribute; if (lRemoteAttribute.GetAttributeValue() != AttributeValue) return false; return true; }
public override bool ComapreAttributes(ObjectAttribute RemoteAttribute) { if (RemoteAttribute == null) return false; if (RemoteAttribute.GetAttributeType() != AttributeType.String) return false; ObjectAttributeString lRemoteAttribute = (ObjectAttributeString)RemoteAttribute; if (lRemoteAttribute.GetAttributeValue() == null) return false; Match m = Regex.Match(lRemoteAttribute.GetAttributeValue(), Match); if (m.Success) return true; return false; }