来自documentation:AstaticfieldmarkedwithContextStaticAttributeisnotsharedbetweencontexts.Iftheindicatedstaticfieldisaccessedonadifferentcontext,itwillcontainadifferentvalue.Usethisattributeasitis,anddonotderivefromit.Thefollowingexampleshowsthesyntaxofthisattribute:[ContextStatic]staticintf=7;不幸的是