Microsoft.CSharp.RuntimeBinder.Semantics.MethodSymbol.getProperty C# (CSharp) Méthode

getProperty() public méthode

public getProperty ( ) : Microsoft.CSharp.RuntimeBinder.Semantics.PropertySymbol
Résultat Microsoft.CSharp.RuntimeBinder.Semantics.PropertySymbol
        public PropertySymbol getProperty()
        {
            Debug.Assert(isPropertyAccessor());
            return _prop;
        }

Usage Example

Exemple #1
0
        private PropertySymbol LoadProperty(
            PREDEFPROP predefProp,
            Name propertyName,
            PREDEFMETH propertyGetter)
        {
            Debug.Assert(propertyName != null);
            Debug.Assert(propertyGetter >= 0 && propertyGetter < PREDEFMETH.PM_COUNT);

            RuntimeBinderSymbolTable.AddPredefinedPropertyToSymbolTable(
                GetPredefAgg(GetPropPredefType(predefProp)), propertyName);
            MethodSymbol getter = GetMethod(propertyGetter);

            getter.SetMethKind(MethodKindEnum.PropAccessor);
            PropertySymbol property = getter.getProperty();
            Debug.Assert(property != null);
            return property;
        }
All Usage Examples Of Microsoft.CSharp.RuntimeBinder.Semantics.MethodSymbol::getProperty