public PropertyData GeneratePropertyData(PropertyInfo propertyInfo) { Check.Ref(propertyInfo); var get = (propertyInfo.CanRead) ? GenerateAccessor(propertyInfo.GetMethod) : new PropertyData.Accessor(false, default); var set = (propertyInfo.CanWrite) ? GenerateAccessor(propertyInfo.SetMethod) : new PropertyData.Accessor(false, default); return(new PropertyData( GenerateMemberData(propertyInfo), GenerateIndexerParams(propertyInfo), get, set)); }