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
- TimeSpanStorage.cs
- ByteStreamGeometryContext.cs
- ContentElement.cs
- DataServices.cs
- FormsIdentity.cs
- ListenerAdapterBase.cs
- EditorBrowsableAttribute.cs
- MessageBox.cs
- NullableLongAverageAggregationOperator.cs
- SoapAttributeOverrides.cs
- DelegateOutArgument.cs
- OrderedHashRepartitionStream.cs
- SessionPageStatePersister.cs
- TextContainer.cs
- ElementUtil.cs
- StaticTextPointer.cs
- BooleanStorage.cs
- NameValuePair.cs
- _LoggingObject.cs
- CharStorage.cs
- DateBoldEvent.cs
- PrivilegedConfigurationManager.cs
- ObjectDataSourceFilteringEventArgs.cs
- ApplyImportsAction.cs
- figurelengthconverter.cs
- TdsParser.cs
- EntityContainerEntitySet.cs
- SparseMemoryStream.cs
- ObjectViewEntityCollectionData.cs
- UnmanagedHandle.cs
- EntityDataSourceViewSchema.cs
- PersonalizationDictionary.cs
- PublishLicense.cs
- LostFocusEventManager.cs
- BehaviorEditorPart.cs
- TextEffect.cs
- SimpleTextLine.cs
- HandleCollector.cs
- CompositeCollectionView.cs
- DataAdapter.cs
- GridEntryCollection.cs
- StylusSystemGestureEventArgs.cs
- xdrvalidator.cs
- ObjectViewEntityCollectionData.cs
- ExecutedRoutedEventArgs.cs
- Canvas.cs
- CommandDevice.cs
- MetabaseServerConfig.cs
- PersistenceProviderFactory.cs
- Section.cs
- ComponentResourceKeyConverter.cs
- StatusBar.cs
- MetadataItemSerializer.cs
- AnimatedTypeHelpers.cs
- ToolboxItem.cs
- RootBrowserWindowAutomationPeer.cs
- KeyboardNavigation.cs
- WindowsRichEditRange.cs
- SystemIcmpV6Statistics.cs
- oledbconnectionstring.cs
- Attributes.cs
- BindingsCollection.cs
- SoapIgnoreAttribute.cs
- assemblycache.cs
- PolicyLevel.cs
- CompensationExtension.cs
- ContextMenuAutomationPeer.cs
- ICspAsymmetricAlgorithm.cs
- ModelTypeConverter.cs
- ProfileGroupSettingsCollection.cs
- SolidColorBrush.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- UInt32Converter.cs
- ObjectSecurity.cs
- ZipIOLocalFileHeader.cs
- TableCellCollection.cs
- XPathPatternBuilder.cs
- TableChangeProcessor.cs
- MemberAssignment.cs
- SynchronizingStream.cs
- TextBoxAutoCompleteSourceConverter.cs
- PublisherIdentityPermission.cs
- ReaderOutput.cs
- NullReferenceException.cs
- FormatterConverter.cs
- SiteMapNodeItemEventArgs.cs
- _IPv6Address.cs
- HashMembershipCondition.cs
- MatrixTransform3D.cs
- TabControlDesigner.cs
- NativeMethods.cs
- WebPartEditorApplyVerb.cs
- WindowsImpersonationContext.cs
- EntityProxyFactory.cs
- HttpFileCollectionWrapper.cs
- Bitmap.cs
- XamlHostingSection.cs
- XmlEncApr2001.cs
- OleDbEnumerator.cs
- AppLevelCompilationSectionCache.cs