Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 1.36 KB

PX1011.md

File metadata and controls

31 lines (21 loc) · 1.36 KB

PX1011

This document describes the PX1011 diagnostic.

Summary

Code Short Description Type Code Fix
PX1011 Because multiple levels of inheritance are not supported for PXCacheExtension, the derived type can be marked as sealed. Warning (ISV Level 3: Informational) Available

Diagnostic Description

Because C#-style inheritance from PXCacheExtension is not supported, you can mark PXCacheExtension-derived classes with the sealed modifier.

The code fix adds the sealed modifier to the PXCacheExtension-derived class.

Example of Code that Results in the Warning

public class ARInvoice : PXBqlTable, IBqlTable { }
public class ARInvoiceRUTROT : PXCacheExtension<ARInvoice> { } // The PX1011 warning is displayed for this line.

Example of Code Fix

public class ARInvoice : PXBqlTable, IBqlTable { }
public sealed class ARInvoiceRUTROT : PXCacheExtension<ARInvoice> { }

Related Articles

DAC Extensions