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
- SrgsElement.cs
- AccessorTable.cs
- HttpConfigurationContext.cs
- CompoundFileIOPermission.cs
- MsmqTransportSecurityElement.cs
- DataBoundLiteralControl.cs
- InvalidComObjectException.cs
- ResourcePool.cs
- ObjectDataSourceEventArgs.cs
- SqlColumnizer.cs
- ImportOptions.cs
- SequentialOutput.cs
- SslStream.cs
- AttachedAnnotation.cs
- ISAPIRuntime.cs
- DecimalFormatter.cs
- CalendarDay.cs
- FileVersion.cs
- CheckBoxBaseAdapter.cs
- thaishape.cs
- StringConverter.cs
- XMLSyntaxException.cs
- DataList.cs
- PathParser.cs
- VisualStateChangedEventArgs.cs
- GeneralTransform3DGroup.cs
- DoubleKeyFrameCollection.cs
- DataGridViewImageCell.cs
- DisableDpiAwarenessAttribute.cs
- DeobfuscatingStream.cs
- TraceHelpers.cs
- CustomErrorCollection.cs
- FontStyle.cs
- BulletedListEventArgs.cs
- MatrixAnimationUsingPath.cs
- SymbolType.cs
- SystemIPv4InterfaceProperties.cs
- ParserStreamGeometryContext.cs
- DataListItemEventArgs.cs
- WebPartEditorCancelVerb.cs
- DeleteBookmarkScope.cs
- SortQuery.cs
- FormsAuthenticationEventArgs.cs
- DataSourceNameHandler.cs
- DocumentViewerBase.cs
- EnumMember.cs
- ClientConfigurationHost.cs
- WindowsButton.cs
- Expander.cs
- Decorator.cs
- ParenthesizePropertyNameAttribute.cs
- StructureChangedEventArgs.cs
- ConnectorSelectionGlyph.cs
- BuildProviderCollection.cs
- GorillaCodec.cs
- AuthorizationSection.cs
- TransformProviderWrapper.cs
- WebPartDeleteVerb.cs
- ECDiffieHellmanCng.cs
- PageCatalogPart.cs
- ListViewInsertEventArgs.cs
- Validator.cs
- XmlSchemaDocumentation.cs
- ObjectStorage.cs
- FileEnumerator.cs
- ThreadAbortException.cs
- FormatControl.cs
- RelationshipNavigation.cs
- FileLogRecordStream.cs
- SoapProtocolReflector.cs
- FederatedMessageSecurityOverHttpElement.cs
- XmlNamespaceManager.cs
- HostingEnvironment.cs
- DispatcherObject.cs
- CacheSection.cs
- SystemWebExtensionsSectionGroup.cs
- PhysicalAddress.cs
- DllNotFoundException.cs
- StoreContentChangedEventArgs.cs
- FixedPage.cs
- FlowDocument.cs
- AbstractExpressions.cs
- TypeUnloadedException.cs
- DbConnectionFactory.cs
- ServiceProviders.cs
- ToolStripRenderer.cs
- BinaryReader.cs
- Container.cs
- ToolStripItemEventArgs.cs
- BitmapFrame.cs
- PriorityQueue.cs
- ManualResetEvent.cs
- DoubleMinMaxAggregationOperator.cs
- ImageProxy.cs
- DataGridViewRowHeaderCell.cs
- AmbientValueAttribute.cs
- IMembershipProvider.cs
- StrongNameIdentityPermission.cs
- EventWaitHandleSecurity.cs
- RouteCollection.cs