src/Shared/EntityFramework/Core/Objects/MaterializedDataRecord.cs
// <summary>
// Initialize the property descriptors for each PrimitiveType attribute.
// See similar functionality in DataRecordObjectView's ITypedList implementation.
// </summary>
Initialize the property descriptors for each PrimitiveType attribute.
See similar functionality in DataRecordObjectView's ITypedList implementation.
Initialize the property descriptors for each PrimitiveType attribute . See similar functionality in DataRecordObjectView ' s ITypedList implementation .
private PropertyDescriptorCollection InitializePropertyDescriptors()
        {
            if (null == _values)
            {
                return null;
            }
            if (_propertyDescriptors == null
                && 0 < _values.Length)
            {
                _propertyDescriptors = CreatePropertyDescriptorCollection(
                    DataRecordInfo.RecordType.EdmType as StructuralType,
                    typeof(MaterializedDataRecord), true);
            }
            return _propertyDescriptors;
        }
private PropertyDescriptorCollection InitializePropertyDescriptors ( ) { if ( null == _values ) { return null ; } if ( _propertyDescriptors == null && 0 < _values . Length ) { _propertyDescriptors = CreatePropertyDescriptorCollection ( DataRecordInfo . RecordType . EdmType as StructuralType , typeof ( MaterializedDataRecord ) , true ) ; } return _propertyDescriptors ; }
Initialize the property descriptors for each PrimitiveType attribute.
Initialize the property descriptors for each PrimitiveType attribute .
// Create a new PropertyDescriptorCollection with read-only properties