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
- DetailsViewDeleteEventArgs.cs
- EventLogPermissionAttribute.cs
- ProxyFragment.cs
- DataGridViewTopLeftHeaderCell.cs
- ValueQuery.cs
- SerTrace.cs
- NominalTypeEliminator.cs
- EntityType.cs
- XmlSchemaComplexContent.cs
- ListControl.cs
- HitTestParameters.cs
- RefreshPropertiesAttribute.cs
- GACMembershipCondition.cs
- RoutedUICommand.cs
- ToolStripProgressBar.cs
- WebRequest.cs
- FormViewDeletedEventArgs.cs
- SymDocumentType.cs
- MissingManifestResourceException.cs
- VirtualizingStackPanel.cs
- VisualStyleRenderer.cs
- InfoCardUIAgent.cs
- CodeObject.cs
- httpstaticobjectscollection.cs
- Policy.cs
- GACMembershipCondition.cs
- ChoiceConverter.cs
- SoapConverter.cs
- PriorityBinding.cs
- EncoderParameters.cs
- ApplicationDirectory.cs
- WebBrowser.cs
- PermissionSetEnumerator.cs
- SpellerStatusTable.cs
- TemplateControl.cs
- PersonalizablePropertyEntry.cs
- SmiConnection.cs
- TextRangeEditTables.cs
- __ComObject.cs
- TextBoxDesigner.cs
- TextDecorationLocationValidation.cs
- TileModeValidation.cs
- ByteAnimationUsingKeyFrames.cs
- RootAction.cs
- HtmlInputReset.cs
- LeaseManager.cs
- XmlWrappingReader.cs
- GacUtil.cs
- DocumentsTrace.cs
- XXXInfos.cs
- TaskFormBase.cs
- PrintDialogDesigner.cs
- FixedTextSelectionProcessor.cs
- LinqDataSourceUpdateEventArgs.cs
- TransformationRules.cs
- ADConnectionHelper.cs
- MouseGestureConverter.cs
- MediaScriptCommandRoutedEventArgs.cs
- SystemUdpStatistics.cs
- Currency.cs
- EntityCollection.cs
- ProtocolsSection.cs
- BaseTemplateBuildProvider.cs
- DeleteWorkflowOwnerCommand.cs
- ExceptionUtility.cs
- OpenTypeLayoutCache.cs
- DataRelation.cs
- EntityTransaction.cs
- CachedBitmap.cs
- ArgumentOutOfRangeException.cs
- GlyphShapingProperties.cs
- CacheMemory.cs
- MailWebEventProvider.cs
- NotifyInputEventArgs.cs
- TemplateControlParser.cs
- WindowsTokenRoleProvider.cs
- SecureUICommand.cs
- ControlOperationInvoker.cs
- BoundingRectTracker.cs
- ContractBase.cs
- SqlProcedureAttribute.cs
- PageContentAsyncResult.cs
- SyndicationDeserializer.cs
- XmlSchemaRedefine.cs
- FileInfo.cs
- SimplePropertyEntry.cs
- XmlObjectSerializerReadContext.cs
- DrawingContextWalker.cs
- Parser.cs
- ToolStripEditorManager.cs
- CodeAttachEventStatement.cs
- InheritanceAttribute.cs
- RbTree.cs
- TransformCryptoHandle.cs
- ConnectionPoolRegistry.cs
- X509ChainElement.cs
- MethodBuilder.cs
- PageHandlerFactory.cs
- configsystem.cs
- DataServiceOperationContext.cs