コード例 #1
0
        private void UnpackDefaultProperty(object sender, object inst, UnpackFunc unpacker)
        {
            Property property = sender as Property;

            if (property == null)
            {
                return;
            }

            PropertyRecord record;

            if (!_records.TryGetValue(property.Name, out record))
            {
                return;
            }

            record.Info.SetValue(inst, unpacker(property), null);
        }
コード例 #2
0
 public override int GetHashCode()
 {
     return(this.GetType().FullName.GetHashCode() ^ Format.GetHashCode() ^ Name.GetHashCode() ^ Description.GetHashCode() ^ Flags.GetHashCode() ^ Bits.GetHashCode() ^ NComponents.GetHashCode() ^ Shift.GetHashCode() ^ Depth.GetHashCode() ^ PixelStride.GetHashCode() ^ NPlanes.GetHashCode() ^ Plane.GetHashCode() ^ Poffset.GetHashCode() ^ WSub.GetHashCode() ^ HSub.GetHashCode() ^ UnpackFormat.GetHashCode() ^ UnpackFunc.GetHashCode() ^ PackLines.GetHashCode() ^ PackFunc.GetHashCode() ^ TileMode.GetHashCode() ^ TileWs.GetHashCode() ^ TileHs.GetHashCode());
 }
コード例 #3
0
 public bool Equals(VideoFormatInfo other)
 {
     return(true && Format.Equals(other.Format) && Name.Equals(other.Name) && Description.Equals(other.Description) && Flags.Equals(other.Flags) && Bits.Equals(other.Bits) && NComponents.Equals(other.NComponents) && Shift.Equals(other.Shift) && Depth.Equals(other.Depth) && PixelStride.Equals(other.PixelStride) && NPlanes.Equals(other.NPlanes) && Plane.Equals(other.Plane) && Poffset.Equals(other.Poffset) && WSub.Equals(other.WSub) && HSub.Equals(other.HSub) && UnpackFormat.Equals(other.UnpackFormat) && UnpackFunc.Equals(other.UnpackFunc) && PackLines.Equals(other.PackLines) && PackFunc.Equals(other.PackFunc) && TileMode.Equals(other.TileMode) && TileWs.Equals(other.TileWs) && TileHs.Equals(other.TileHs));
 }
コード例 #4
0
 public PackPair(PackFunc pack, UnpackFunc unpack)
 {
     Pack   = pack;
     Unpack = unpack;
 }
コード例 #5
0
 public override int GetHashCode()
 {
     return(this.GetType().FullName.GetHashCode() ^ Format.GetHashCode() ^ Name.GetHashCode() ^ Description.GetHashCode() ^ Flags.GetHashCode() ^ Endianness.GetHashCode() ^ Width.GetHashCode() ^ Depth.GetHashCode() ^ Silence.GetHashCode() ^ UnpackFormat.GetHashCode() ^ UnpackFunc.GetHashCode() ^ PackFunc.GetHashCode());
 }
コード例 #6
0
 public bool Equals(AudioFormatInfo other)
 {
     return(true && Format.Equals(other.Format) && Name.Equals(other.Name) && Description.Equals(other.Description) && Flags.Equals(other.Flags) && Endianness.Equals(other.Endianness) && Width.Equals(other.Width) && Depth.Equals(other.Depth) && Silence.Equals(other.Silence) && UnpackFormat.Equals(other.UnpackFormat) && UnpackFunc.Equals(other.UnpackFunc) && PackFunc.Equals(other.PackFunc));
 }