Base type is not CLS-compliant, what reasons of this warning?

后端 未结 4 1463
感动是毒
感动是毒 2021-01-03 17:59

I have got warning from subject on one of my classes. Actually class is very simple, just an inheritor of my generic base type. Also I have some other inheritors from that g

4条回答
  •  滥情空心
    2021-01-03 18:16

    I guess you have a derived type marked as CLSCompliant but the base isn't.

    Writing CLS Compliant Code The canonical example is using a UInt32 which is not part of the Common Language Specification (CLS) - hence you need to use Int64 to be CLS compliant or remove the attribute (declare yourself non-cls compliant).

    Need more code to identify the offending line of code. More info on the error you're getting.

提交回复
热议问题