Navigation: X# Documentation > X# Compiler Errors and Warnings
Error XS8891
Type '{0}' must be public to be used as a calling convention.