C# Class Microsoft.CodeAnalysis.CSharp.Symbols.SynthesizedRecordClone

If a virtual "clone" method is present in the base record, the synthesized "clone" method overrides it and the return type of the method is the current containing type if the "covariant returns" feature is supported and the override return type otherwise. An error is produced if the base record clone method is sealed. If a virtual "clone" method is not present in the base record, the return type of the clone method is the containing type and the method is virtual, unless the record is sealed or abstract. If the containing record is abstract, the synthesized clone method is also abstract. If the "clone" method is not abstract, it returns the result of a call to a copy constructor.
Inheritance: Microsoft.CodeAnalysis.CSharp.Symbols.SynthesizedRecordOrdinaryMethod
Afficher le fichier Open project: mob-sakai/OpenSesame Class Usage Examples

Méthodes publiques

Méthode Description
SynthesizedRecordClone ( Microsoft.CodeAnalysis.CSharp.Symbols.SourceMemberContainerTypeSymbol containingType, int memberOffset, DiagnosticBag diagnostics ) : System.Collections.Generic

Méthodes protégées

Méthode Description
MakeDeclarationModifiers ( DeclarationModifiers allowedModifiers, DiagnosticBag diagnostics ) : DeclarationModifiers

Private Methods

Méthode Description
modifiersAreValid ( DeclarationModifiers modifiers ) : bool

Method Details

MakeDeclarationModifiers() protected méthode

protected MakeDeclarationModifiers ( DeclarationModifiers allowedModifiers, DiagnosticBag diagnostics ) : DeclarationModifiers
allowedModifiers DeclarationModifiers
diagnostics DiagnosticBag
Résultat DeclarationModifiers

SynthesizedRecordClone() public méthode

public SynthesizedRecordClone ( Microsoft.CodeAnalysis.CSharp.Symbols.SourceMemberContainerTypeSymbol containingType, int memberOffset, DiagnosticBag diagnostics ) : System.Collections.Generic
containingType Microsoft.CodeAnalysis.CSharp.Symbols.SourceMemberContainerTypeSymbol
memberOffset int
diagnostics DiagnosticBag
Résultat System.Collections.Generic