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
Mostrar archivo Open project: mob-sakai/OpenSesame Class Usage Examples

Public Methods

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

Protected Methods

Method Description
MakeDeclarationModifiers ( DeclarationModifiers allowedModifiers, DiagnosticBag diagnostics ) : DeclarationModifiers

Private Methods

Method Description
modifiersAreValid ( DeclarationModifiers modifiers ) : bool

Method Details

MakeDeclarationModifiers() protected method

protected MakeDeclarationModifiers ( DeclarationModifiers allowedModifiers, DiagnosticBag diagnostics ) : DeclarationModifiers
allowedModifiers DeclarationModifiers
diagnostics DiagnosticBag
return DeclarationModifiers

SynthesizedRecordClone() public method

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
return System.Collections.Generic