Udostępnij za pośrednictwem


ISymbol.IsImplicitlyDeclared Property

Definition

Returns true if this symbol was automatically created by the compiler, and does not have an explicit corresponding source code declaration.

public:
 property bool IsImplicitlyDeclared { bool get(); };
public bool IsImplicitlyDeclared { get; }
member this.IsImplicitlyDeclared : bool
Public ReadOnly Property IsImplicitlyDeclared As Boolean

Property Value

Remarks

This is intended for symbols that are ordinary symbols in the language sense, and may be used by code, but that are simply declared implicitly rather than with explicit language syntax.

Examples include (this list is not exhaustive):

  • The default constructor for a class or struct that is created if one is not provided.
  • The BeginInvoke/Invoke/EndInvoke methods for a delegate.
  • The generated backing field for an auto property or a field-like event.
  • The "this" parameter for non-static methods.
  • The "value" parameter for a property setter.
  • The parameters on indexer accessor methods (not on the indexer itself).
  • Methods in anonymous types.

The class and entry point method for top-level statements are not considered as implicitly declared.

Applies to