Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- HtmlPanelAdapter.cs
- DispatchChannelSink.cs
- SafeTimerHandle.cs
- MimeTypeAttribute.cs
- FileDialogCustomPlacesCollection.cs
- Tablet.cs
- PauseStoryboard.cs
- UpDownEvent.cs
- DurableOperationAttribute.cs
- XmlSchemaAny.cs
- FacetValues.cs
- AppDomainAttributes.cs
- DataColumnChangeEvent.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- WizardStepBase.cs
- Int32CollectionValueSerializer.cs
- TableColumnCollection.cs
- MailMessage.cs
- OrderedParallelQuery.cs
- MdImport.cs
- KnownColorTable.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- DBParameter.cs
- RSAOAEPKeyExchangeFormatter.cs
- BitmapEffectInput.cs
- PartManifestEntry.cs
- XamlDesignerSerializationManager.cs
- AnimationClockResource.cs
- ClockController.cs
- Region.cs
- DataGridColumnCollectionEditor.cs
- TableHeaderCell.cs
- _LocalDataStore.cs
- UnsafeNativeMethods.cs
- SigningDialog.cs
- CopyNodeSetAction.cs
- SetterTriggerConditionValueConverter.cs
- ContextBase.cs
- MainMenu.cs
- TemplateField.cs
- NonPrimarySelectionGlyph.cs
- PatternMatcher.cs
- SocketException.cs
- ResXDataNode.cs
- MiniAssembly.cs
- PtsHost.cs
- PolicyManager.cs
- PrintEvent.cs
- DeferrableContentConverter.cs
- LOSFormatter.cs
- SmiEventSink_Default.cs
- SmtpSection.cs
- LeaseManager.cs
- SessionIDManager.cs
- BufferedReadStream.cs
- ManifestResourceInfo.cs
- ExpressionBuilder.cs
- ProviderSettings.cs
- TableProviderWrapper.cs
- ToolboxItemAttribute.cs
- FileLogRecordStream.cs
- PathSegment.cs
- DesignerTransactionCloseEvent.cs
- Set.cs
- UpDownBase.cs
- RawStylusInputCustomData.cs
- CharacterShapingProperties.cs
- XmlSerializerAssemblyAttribute.cs
- ReachPrintTicketSerializer.cs
- BuildProvidersCompiler.cs
- UIElement3D.cs
- HttpProfileGroupBase.cs
- HostProtectionException.cs
- PropertyEmitterBase.cs
- FileReservationCollection.cs
- MatrixKeyFrameCollection.cs
- CurrencyWrapper.cs
- ObjectDataSourceChooseTypePanel.cs
- DetailsViewUpdatedEventArgs.cs
- ListComponentEditor.cs
- Exceptions.cs
- HtmlCommandAdapter.cs
- Sql8ExpressionRewriter.cs
- StringExpressionSet.cs
- LingerOption.cs
- ReadWriteObjectLock.cs
- ElementFactory.cs
- MultiAsyncResult.cs
- EventProvider.cs
- RedirectionProxy.cs
- CustomError.cs
- RichTextBoxAutomationPeer.cs
- Vector.cs
- StylusEventArgs.cs
- UnsafeNativeMethods.cs
- ListViewCommandEventArgs.cs
- TemplatePagerField.cs
- OdbcUtils.cs
- GeneralTransform3D.cs
- SocketInformation.cs