Catel.Data.CatelTypeInfo.GetPropertyData C# (CSharp) Méthode

GetPropertyData() public méthode

Gets the property data.
The is null or whitespace. Thrown when the property is not registered.
public GetPropertyData ( string name ) : PropertyData
name string The name of the property.
Résultat PropertyData
        public PropertyData GetPropertyData(string name)
        {
            Argument.IsNotNullOrWhitespace("name", name);

            lock (_lockObject)
            {
                PropertyData catelProperty;
                if (!_catelProperties.TryGetValue(name, out catelProperty))
                {
                    throw Log.ErrorAndCreateException(msg => new PropertyNotRegisteredException(name, Type),
                    "Property '{0}' on type '{1}' is not registered", name, Type.FullName);
                }

                return catelProperty;
            }
        }