예제 #1
0
        private void AssurePropertyFromName()
        {
            if (property == null && _propertyFromName != string.Empty)
            {
                string[] propertyParts = _propertyFromName.Split('.');
                string   propertyName;
                string   className;
                if (propertyParts.Length > 1)
                {
                    propertyName = propertyParts[propertyParts.Length - 1];
                    className    = string.Join(".", propertyParts, 0, propertyParts.Length - 1);
                }
                else
                {
                    throw new Exception("Invalid property parts");
                }

                this.property = RadProperty.Find(className, propertyName);
            }
        }