Orchard.ContentManagement.ContentPart.Has C# (CSharp) Method

Has() public method

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