Pomona.Common.TypeSystem.PropertySpec.OnLoadBaseDefinition C# (CSharp) Method

OnLoadBaseDefinition() protected method

protected OnLoadBaseDefinition ( ) : PropertySpec
return PropertySpec
        protected internal virtual PropertySpec OnLoadBaseDefinition()
        {
            var propInfoBaseDefinition = PropertyInfo.GetBaseDefinition();

            return
                DeclaringType
                    .BaseType
                    .WalkTree(x => x.BaseType)
                    .SelectMany(x => x.Properties.Where(y => y.PropertyInfo.Equals(propInfoBaseDefinition)))
                    .FirstOrDefault();
        }

Usage Example

Ejemplo n.º 1
0
 public virtual PropertySpec LoadBaseDefinition(PropertySpec propertySpec)
 {
     if (propertySpec == null)
     {
         throw new ArgumentNullException(nameof(propertySpec));
     }
     return(propertySpec.OnLoadBaseDefinition());
 }
All Usage Examples Of Pomona.Common.TypeSystem.PropertySpec::OnLoadBaseDefinition