Orchard.ContentManagement.ContentPart.Has C# (CSharp) Méthode

Has() public méthode

public Has ( Type fieldType, string fieldName ) : bool
fieldType Type
fieldName string
Résultat bool
        public bool Has(Type fieldType, string fieldName) {
            return _fields.Any(field => fieldType.IsInstanceOfType(field) && field.Name == fieldName);
        }