Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / Animation / ResolvedKeyFrameEntry.cs / 1305600 / ResolvedKeyFrameEntry.cs
//------------------------------------------------------------------------------ // Microsoft Windows Client Platform // Copyright (c) Microsoft Corporation // // File: ResolvedKeyFrameEntry.cs //----------------------------------------------------------------------------- namespace System.Windows.Media.Animation { internal struct ResolvedKeyFrameEntry : IComparable { internal Int32 _originalKeyFrameIndex; internal TimeSpan _resolvedKeyTime; public Int32 CompareTo(object other) { ResolvedKeyFrameEntry otherEntry = (ResolvedKeyFrameEntry)other; if (otherEntry._resolvedKeyTime > _resolvedKeyTime) { return -1; } else if (otherEntry._resolvedKeyTime < _resolvedKeyTime) { return 1; } else { if (otherEntry._originalKeyFrameIndex > _originalKeyFrameIndex) { return -1; } else if (otherEntry._originalKeyFrameIndex < _originalKeyFrameIndex) { return 1; } else { return 0; } } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ // Microsoft Windows Client Platform // Copyright (c) Microsoft Corporation // // File: ResolvedKeyFrameEntry.cs //----------------------------------------------------------------------------- namespace System.Windows.Media.Animation { internal struct ResolvedKeyFrameEntry : IComparable { internal Int32 _originalKeyFrameIndex; internal TimeSpan _resolvedKeyTime; public Int32 CompareTo(object other) { ResolvedKeyFrameEntry otherEntry = (ResolvedKeyFrameEntry)other; if (otherEntry._resolvedKeyTime > _resolvedKeyTime) { return -1; } else if (otherEntry._resolvedKeyTime < _resolvedKeyTime) { return 1; } else { if (otherEntry._originalKeyFrameIndex > _originalKeyFrameIndex) { return -1; } else if (otherEntry._originalKeyFrameIndex < _originalKeyFrameIndex) { return 1; } else { return 0; } } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CurrencyWrapper.cs
- ContextStaticAttribute.cs
- ConsoleTraceListener.cs
- EFDataModelProvider.cs
- ValidationResult.cs
- GcHandle.cs
- ReaderWriterLock.cs
- TreeViewDesigner.cs
- ADMembershipUser.cs
- NativeMethods.cs
- TCEAdapterGenerator.cs
- TargetConverter.cs
- DefaultSection.cs
- RequiredFieldValidator.cs
- TableItemPattern.cs
- SynchronousChannelMergeEnumerator.cs
- BoolExpression.cs
- PeerNameRecord.cs
- WebPartDescriptionCollection.cs
- GenericRootAutomationPeer.cs
- AxisAngleRotation3D.cs
- SettingsPropertyCollection.cs
- TreeIterator.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- SpStreamWrapper.cs
- ItemCollection.cs
- SequentialOutput.cs
- ProfileManager.cs
- ItemContainerProviderWrapper.cs
- TextModifierScope.cs
- ToolStripContainer.cs
- CapabilitiesSection.cs
- UseLicense.cs
- StorageMappingItemLoader.cs
- XAMLParseException.cs
- NonSerializedAttribute.cs
- RSAProtectedConfigurationProvider.cs
- Walker.cs
- __Error.cs
- ResourceDefaultValueAttribute.cs
- SID.cs
- DependencyObjectType.cs
- IgnoreFlushAndCloseStream.cs
- BaseCAMarshaler.cs
- PrintDialogException.cs
- LayoutTableCell.cs
- DateTimeOffsetConverter.cs
- QueueTransferProtocol.cs
- TextSyndicationContent.cs
- Utils.cs
- ObjectDataSource.cs
- ParentQuery.cs
- InstanceStoreQueryResult.cs
- LocalBuilder.cs
- FileReservationCollection.cs
- PrimarySelectionAdorner.cs
- ToolStripContainer.cs
- XmlAttributeCache.cs
- ZoneIdentityPermission.cs
- util.cs
- PartialCachingControl.cs
- HostingPreferredMapPath.cs
- CodeSnippetStatement.cs
- ProxyDataContractResolver.cs
- Sql8ConformanceChecker.cs
- PipeStream.cs
- XmlWellformedWriter.cs
- TextLineResult.cs
- AbandonedMutexException.cs
- DataGridRowHeaderAutomationPeer.cs
- Pair.cs
- FunctionUpdateCommand.cs
- CodeTryCatchFinallyStatement.cs
- SchemaImporterExtension.cs
- DataColumn.cs
- CodeRegionDirective.cs
- TemplateComponentConnector.cs
- TextContainerHelper.cs
- X509Chain.cs
- ExtractorMetadata.cs
- ToolboxItemSnapLineBehavior.cs
- SystemIcmpV6Statistics.cs
- WebPartsPersonalization.cs
- RequestDescription.cs
- AutomationAttributeInfo.cs
- DataControlCommands.cs
- RegexRunner.cs
- XPathNavigatorKeyComparer.cs
- TimerEventSubscriptionCollection.cs
- CompoundFileStorageReference.cs
- DataList.cs
- Label.cs
- ScaleTransform3D.cs
- DictionaryContent.cs
- Dispatcher.cs
- XmlFormatMapping.cs
- EditorPart.cs
- SerializableAttribute.cs
- XmlSchemaImporter.cs
- _TLSstream.cs