src/Compilers/CSharp/Portable/Symbols/Source/SourcePropertySymbol.cs
/// <summary>
/// Returns a bag of custom attributes applied on the property and data decoded from well-known attributes. Returns null if there are no attributes.
/// </summary>
/// <remarks>
/// Forces binding and decoding of attributes.
/// </remarks>
Returns a bag of custom attributes applied on the property and data decoded from well-known attributes. Returns null if there are no attributes.
Returns a bag of custom attributes applied on the property and data decoded from well - known attributes . Returns null if there are no attributes .
private CustomAttributesBag<CSharpAttributeData> GetAttributesBag()
        {
            var bag = _lazyCustomAttributesBag;
            if (bag != null && bag.IsSealed)
            {
                return bag;
            }
            _ = _backingField?.GetAttributes();
            if (LoadAndValidateAttributes(OneOrMany.Create(this.CSharpSyntaxNode.AttributeLists), ref _lazyCustomAttributesBag))
            {
                var completed = _state.NotePartComplete(CompletionPart.Attributes);
                Debug.Assert(completed);
            }
            Debug.Assert(_lazyCustomAttributesBag.IsSealed);
            return _lazyCustomAttributesBag;
        }
private CustomAttributesBag < CSharpAttributeData > GetAttributesBag ( ) { var bag = _lazyCustomAttributesBag ; if ( bag != null && bag . IsSealed ) { return bag ; } _ = _backingField ? . GetAttributes ( ) ; if ( LoadAndValidateAttributes ( OneOrMany . Create ( this . CSharpSyntaxNode . AttributeLists ) , ref _lazyCustomAttributesBag ) ) { var completed = _state . NotePartComplete ( CompletionPart . Attributes ) ; Debug . Assert ( completed ) ; } Debug . Assert ( _lazyCustomAttributesBag . IsSealed ) ; return _lazyCustomAttributesBag ; }
Returns a bag of custom attributes applied on the property and data decoded from well-known attributes.
Returns a bag of custom attributes applied on the property and data decoded from well - known attributes .
// The property is responsible for completion of the backing field
remarks
Forces binding and decoding of attributes.
Forces binding and decoding of attributes .