BN089-BS开发框架MVC4版/source20131023/Zephyr.Net/Zephyr.Utils/Document/Excel/NPOI/GlobalSuppressions.cs

(开头部分) 20KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

// This file is used by Code Analysis to maintain SuppressMessage 
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given 
// a specific target and scoped to a namespace, type, member, etc.
//
// To add a suppression to this file, right-click the message in the 
// Error List, point to "Suppress Message(s)", and click 
// "In Project Suppression File".
// You do not need to add suppressions to this file manually.


// TODO fix warnings:
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors", Scope = "member", Target = "Zephyr.Utils.NPOI.SS.Formula.PTG.AreaPtgBase.#.ctor(Zephyr.Utils.NPOI.SS.Util.AreaReference)")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors", Scope = "member", Target = "Zephyr.Utils.NPOI.SS.Formula.PTG.AreaPtgBase.#.ctor(System.Int32,System.Int32,System.Int32,System.Int32,System.Boolean,System.Boolean,System.Boolean,System.Boolean)")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors", Scope = "member", Target = "Zephyr.Utils.NPOI.SS.Formula.PTG.AreaPtgBase.#.ctor(System.String)")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors", Scope = "member", Target = "Zephyr.Utils.NPOI.Util.ByteField.#.ctor(System.Int32,System.Byte)")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors", Scope = "member", Target = "Zephyr.Utils.NPOI.Util.ByteField.#.ctor(System.Int32,System.Byte,System.Byte[])")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors", Scope = "member", Target = "Zephyr.Utils.NPOI.Util.ByteField.#.ctor(System.Int32,System.Byte[])")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors", Scope = "member", Target = "Zephyr.Utils.NPOI.HSSF.Model.ComboboxShape.#.ctor(Zephyr.Utils.NPOI.HSSF.UserModel.HSSFSimpleShape,System.Int32)")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors", Scope = "member", Target = "Zephyr.Utils.NPOI.HSSF.Model.CommentShape.#.ctor(Zephyr.Utils.NPOI.HSSF.UserModel.HSSFComment,System.Int32)")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors", Scope = "member", Target = "Zephyr.Utils.NPOI.POIFS.Properties.DirectoryProperty.#.ctor(System.String)")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors", Scope = "member", Target = "Zephyr.Utils.NPOI.POIFS.Properties.DocumentProperty.#.ctor(System.String,System.Int32)")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors", Scope = "member", Target = "Zephyr.Utils.NPOI.HPSF.DocumentSummaryInformation.#.ctor(Zephyr.Utils.NPOI.HPSF.PropertySet)")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors", Scope = "member", Target = "Zephyr.Utils.NPOI.HSSF.Record.HeaderFooterBase.#.ctor(System.String)")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors", Scope = "member", Target = "Zephyr.Utils.NPOI.HSSF.Model.LineShape.#.ctor(Zephyr.Utils.NPOI.HSSF.UserModel.HSSFSimpleShape,System.Int32)")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors", Scope = "member", Target = "Zephyr.Utils.NPOI.HPSF.MutableProperty.#.ctor(Zephyr.Utils.NPOI.HPSF.Property)")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors", Scope = "member", Target = "Zephyr.Utils.NPOI.HPSF.MutablePropertySet.#.ctor(Zephyr.Utils.NPOI.HPSF.PropertySet)")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors", Scope = "member", Target = "Zephyr.Utils.NPOI.HPSF.MutableSection.#.ctor(Zephyr.Utils.NPOI.HPSF.Section)")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors", Scope = "member", Target = "Zephyr.Utils.NPOI.HSSF.Model.PictureShape.#.ctor(Zephyr.Utils.NPOI.HSSF.UserModel.HSSFSimpleShape,System.Int32)")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors", Scope = "member", Target = "Zephyr.Utils.NPOI.HSSF.Model.PolygonShape.#.ctor(Zephyr.Utils.NPOI.HSSF.UserModel.HSSFPolygon,System.Int32)")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors", Scope = "member", Target = "Zephyr.Utils.NPOI.HPSF.PropertySet.#.ctor(System.Byte[],System.Int32,System.Int32)")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors", Scope = "member", Target = "Zephyr.Utils.NPOI.HPSF.PropertySet.#.ctor(System.IO.Stream)")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors", Scope = "member", Target = "Zephyr.Utils.NPOI.POIFS.Storage.RawDataBlockList.#.ctor(System.IO.Stream,Zephyr.Utils.NPOI.POIFS.Common.POIFSBigBlockSize)")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors", Scope = "member", Target = "Zephyr.Utils.NPOI.HSSF.Record.ScrollableObjectSubRecord.#.ctor(Zephyr.Utils.NPOI.Util.IO.LittleEndianInput,System.Int32)")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors", Scope = "member", Target = "Zephyr.Utils.NPOI.HPSF.Section.#.ctor(System.Byte[],System.Int32)")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors", Scope = "member", Target = "Zephyr.Utils.NPOI.HSSF.Model.SimpleFilledShape.#.ctor(Zephyr.Utils.NPOI.HSSF.UserModel.HSSFSimpleShape,System.Int32)")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors", Scope = "member", Target = "Zephyr.Utils.NPOI.POIFS.Storage.SmallDocumentBlockList.#.ctor(System.Collections.Generic.List`1<Zephyr.Utils.NPOI.POIFS.Storage.SmallDocumentBlock>)")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors", Scope = "member", Target = "Zephyr.Utils.NPOI.HPSF.SummaryInformation.#.ctor(Zephyr.Utils.NPOI.HPSF.PropertySet)")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors", Scope = "member", Target = "Zephyr.Utils.NPOI.HSSF.Model.TextboxShape.#.ctor(Zephyr.Utils.NPOI.HSSF.UserModel.HSSFTextbox,System.Int32)")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors", Scope = "member", Target = "Zephyr.Utils.NPOI.HSSF.Record.ScrollableObjectSubRecord.#.ctor(Zephyr.Utils.NPOI.Util.ILittleEndianInput,System.Int32)")]

// TODO fix warnings:
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2240:ImplementISerializableCorrectly", Scope = "type", Target = "Zephyr.Utils.NPOI.HPSF.VariantTypeException")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2240:ImplementISerializableCorrectly", Scope = "type", Target = "Zephyr.Utils.NPOI.SS.Formula.Eval.EvaluationException")]

// The hash tables should NOT be serialized - or am I wrong?
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2237:MarkISerializableTypesWithSerializable", Scope = "type", Target = "Zephyr.Utils.NPOI.HPSF.Wellknown.SectionIDMap")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2237:MarkISerializableTypesWithSerializable", Scope = "type", Target = "Zephyr.Utils.NPOI.HPSF.Wellknown.PropertyIDMap")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2237:MarkISerializableTypesWithSerializable", Scope = "type", Target = "Zephyr.Utils.NPOI.HPSF.CustomProperties")]

// there is no non breaking fix - in both cases is a stream returned 8-(
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Reliability", "CA2000:Dispose objects before losing scope", Scope = "member", Target = "Zephyr.Utils.NPOI.HPSF.MutablePropertySet.#GetStream()")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Reliability", "CA2000:Dispose objects before losing scope", Scope = "member", Target = "Zephyr.Utils.NPOI.POIFS.NIO.FileBackedDataSource.#Read(System.Int32,System.Int64)")]

// The code seems okay to me:
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2202:Do not dispose objects multiple times", Scope = "member", Target = "Zephyr.Utils.NPOI.DDF.EscherBlipWMFRecord.#Compress(System.Byte[])")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2202:Do not dispose objects multiple times", Scope = "member", Target = "Zephyr.Utils.NPOI.HSSF.Util.GUID.#D4")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2202:Do not dispose objects multiple times", Scope = "member", Target = "Zephyr.Utils.NPOI.DDF.EscherBlipWMFRecord.#Decompress(System.Byte[],System.Int32,System.Int32)")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2202:Do not dispose objects multiple times", Scope = "member", Target = "Zephyr.Utils.NPOI.DDF.EscherDump.#DumpOld(System.Int64,System.IO.Stream)")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2202:Do not dispose objects multiple times", Scope = "member", Target = "Zephyr.Utils.NPOI.DDF.EscherPictBlip.#InflatePictureData(System.Byte[])")]
后面还有 50 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。