Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Core / CSharp / System / Windows / Media / Animation / ResolvedKeyFrameEntry.cs / 1 / 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
- CorruptStoreException.cs
- HitTestWithPointDrawingContextWalker.cs
- MonitoringDescriptionAttribute.cs
- WebPageTraceListener.cs
- metadatamappinghashervisitor.cs
- Pair.cs
- Container.cs
- ContactManager.cs
- SiteOfOriginPart.cs
- UpDownBase.cs
- ValueProviderWrapper.cs
- Thread.cs
- XmlTextAttribute.cs
- DataList.cs
- VisualStyleRenderer.cs
- SplineKeyFrames.cs
- QueryRewriter.cs
- ExitEventArgs.cs
- SequenceDesigner.cs
- MaskedTextBoxTextEditor.cs
- DesignerVerb.cs
- SecurityUtils.cs
- DocumentPageView.cs
- PositiveTimeSpanValidatorAttribute.cs
- ToolStripMenuItemDesigner.cs
- SharedUtils.cs
- QilStrConcat.cs
- SafeHandles.cs
- AdornerPresentationContext.cs
- DataGridItemAutomationPeer.cs
- BatchParser.cs
- GeneralTransform.cs
- CryptoApi.cs
- InheritanceContextHelper.cs
- MenuItem.cs
- XmlMembersMapping.cs
- PrintDialog.cs
- PointLightBase.cs
- LastQueryOperator.cs
- WebServiceBindingAttribute.cs
- EventHandlersStore.cs
- ToolStripItemDataObject.cs
- BaseParagraph.cs
- Rules.cs
- ColorPalette.cs
- IMembershipProvider.cs
- SponsorHelper.cs
- MsmqTransportSecurity.cs
- OdbcUtils.cs
- HierarchicalDataTemplate.cs
- Menu.cs
- MediaPlayerState.cs
- ZoomPercentageConverter.cs
- OperationFormatter.cs
- SoapSchemaImporter.cs
- XmlDictionaryReader.cs
- SqlProvider.cs
- JsonWriter.cs
- HyperLinkColumn.cs
- XmlFormatExtensionAttribute.cs
- ITreeGenerator.cs
- SmiEventStream.cs
- RemotingConfiguration.cs
- XmlSchemaSimpleType.cs
- ObjectDesignerDataSourceView.cs
- SQLRoleProvider.cs
- LineSegment.cs
- ValidatorCollection.cs
- DispatcherHookEventArgs.cs
- CollectionViewGroup.cs
- FormViewDeleteEventArgs.cs
- ResXResourceSet.cs
- Compensation.cs
- FontInfo.cs
- VersionedStream.cs
- CompositeTypefaceMetrics.cs
- WebPartManagerDesigner.cs
- WebPartMovingEventArgs.cs
- RichTextBoxAutomationPeer.cs
- SmtpCommands.cs
- OneOfScalarConst.cs
- OdbcEnvironment.cs
- OracleParameterBinding.cs
- HostingEnvironmentException.cs
- ProfileEventArgs.cs
- FixUp.cs
- ConsumerConnectionPoint.cs
- SinglePageViewer.cs
- ExponentialEase.cs
- BitStream.cs
- UserNamePasswordValidationMode.cs
- OdbcFactory.cs
- FromReply.cs
- _Semaphore.cs
- DocumentViewerConstants.cs
- NavigationFailedEventArgs.cs
- MediaTimeline.cs
- IUnknownConstantAttribute.cs
- EncoderNLS.cs
- OdbcParameterCollection.cs