我可以在我的項目中看到這個運算符| =在一些示例代碼中使用。下面給出確切代碼運算符| =在C#中的含義是什麼?
DocumentRetrievalOptions docRetrievalOptions = DocumentRetrievalOptions.ByTargetJurisdiction;
docRetrievalOptions |= DocumentRetrievalOptions.ByUniqueId;
其中'DocumentRetrievalOptions'是枚舉類型。
這會有很大的幫助,如果有人讓我知道,這是什麼意思。