Namespace: Metalama.Framework.Code
Assembly: Metalama.Framework.dll
Syntax
public interface IFieldOrProperty : IFieldOrPropertyOrIndexer, IHasAccessors, IMember, IMemberOrNamedType, INamedDeclaration, IDeclaration, IDisplayable, IDiagnosticLocation, ICompilationElement, IMeasurable, IEquatable<IDeclaration>, IFieldOrPropertyInvoker, IExpression, IHasType
Properties
Name | Description |
---|---|
InitializerExpression | Gets the initializer expression (i.e. the expression at the right hand of the equal sign), if any. When the field or property is defined in source code, this property returns an ISourceExpression, which exposes a TypedConstant when possible. |
IsAutoPropertyOrField | Gets a value indicating whether the declaration is an auto-property or a field, or |
IsRequired | Gets a value indicating whether the field or property is |
Methods
Name | Description |
---|---|
ToFieldOrPropertyInfo() | Gets a FieldOrPropertyInfo that represents the current field or property at run time. |
ToRef() |