CK.WPF.ViewModel.VMBase.CheckPropertyName C# (CSharp) Method

CheckPropertyName() private method

private CheckPropertyName ( string propertyName ) : void
propertyName string
return void
        public void CheckPropertyName(string propertyName)
        {
            // Verify that the property name matches a real,
            // public, instance property on this object.
            if( TypeDescriptor.GetProperties(this)[propertyName] == null )
            {
                string msg = "Invalid property name: " + propertyName;
                if( _throwException ) throw new Exception( msg );
                Debug.Fail( msg );
            }
        }