Open sandboxFocus

Interface IFieldOrPropertyBuilder

Base interface for IFieldBuilder and IPropertyBuilder.

Namespace: Metalama.Framework.Code.DeclarationBuilders
Assembly: Metalama.Framework.dll
Syntax
public interface IFieldOrPropertyBuilder : IFieldOrProperty, IFieldOrPropertyInvoker, IExpression, IFieldOrPropertyOrIndexerBuilder, IFieldOrPropertyOrIndexer, IHasAccessors, IMemberBuilder, IMember, IMemberOrNamedTypeBuilder, IMemberOrNamedType, INamedDeclaration, IDeclarationBuilder, IDeclaration, IDisplayable, IDiagnosticLocation, ICompilationElement, IMeasurable, IEquatable<IDeclaration>, IHasTypeBuilder, IHasType

Properties

Name Description
InitializerExpression

Gets or sets the initializer expression (i.e. the expression at the right hand of the equal sign).

IsRequired

Gets or sets a value indicating whether the field or property is required, i.e. it must be initialized when an instance of the declaring type is initialized.

Extension Methods