C# (CSharp) Microsoft.CodeAnalysis.CSharp.Symbols SynthesizedRecordClone - 2 exemples trouvés. Ce sont les exemples réels les mieux notés de Microsoft.CodeAnalysis.CSharp.Symbols.SynthesizedRecordClone extraits de projets open source. Vous pouvez noter les exemples pour nous aider à en améliorer la qualité.
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.