於某個WCF Service傳入物件時,遇到了此錯誤:
無法序列化型別 'System.Linq.Enumerable+WhereEnumerableIterator`1[System.String]'。請考慮以 DataContractAttribute 屬性標記該型別,並以 DataMemberAttribute 屬性標記該型別要序列化的所有成員。如果該型別是集合,請考慮以 CollectionDataContractAttribute 標記該型別。如需其他支援型別,請參閱 Microsoft .NET Framework 文件。