Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / Animation / ResolvedKeyFrameEntry.cs / 1305600 / 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
- SqlCacheDependencyDatabase.cs
- AuthenticationSection.cs
- Helpers.cs
- WebPartAuthorizationEventArgs.cs
- IgnorePropertiesAttribute.cs
- ExpressionNormalizer.cs
- arabicshape.cs
- Metafile.cs
- SqlDependency.cs
- WebPartTransformerAttribute.cs
- SectionRecord.cs
- TableItemPatternIdentifiers.cs
- Typography.cs
- mediaclock.cs
- CryptoApi.cs
- Keywords.cs
- CodeNamespaceImport.cs
- DataGridViewTopRowAccessibleObject.cs
- DeflateEmulationStream.cs
- Array.cs
- RenderContext.cs
- InternalConfigEventArgs.cs
- Menu.cs
- diagnosticsswitches.cs
- TimersDescriptionAttribute.cs
- Axis.cs
- NotifyCollectionChangedEventArgs.cs
- validation.cs
- Error.cs
- TransformGroup.cs
- SiteMapDataSourceDesigner.cs
- QilInvokeEarlyBound.cs
- _NTAuthentication.cs
- DefaultObjectMappingItemCollection.cs
- MessageSecurityTokenVersion.cs
- ConversionValidationRule.cs
- LicFileLicenseProvider.cs
- ReservationNotFoundException.cs
- MatrixCamera.cs
- SqlCacheDependencyDatabaseCollection.cs
- InputMethodStateTypeInfo.cs
- XmlSchemaIdentityConstraint.cs
- AspProxy.cs
- TextElementAutomationPeer.cs
- PrintPreviewDialog.cs
- Queue.cs
- SubstitutionDesigner.cs
- CodeAssignStatement.cs
- WindowsTooltip.cs
- ClientRoleProvider.cs
- TargetConverter.cs
- LocalValueEnumerator.cs
- ToolStripMenuItemDesigner.cs
- JsonFormatReaderGenerator.cs
- UIElement3DAutomationPeer.cs
- BindingExpressionUncommonField.cs
- FilterQuery.cs
- KeyTimeConverter.cs
- TypeLoadException.cs
- VarInfo.cs
- ErrorStyle.cs
- SoapEnumAttribute.cs
- EventQueueState.cs
- ReadOnlyDataSource.cs
- PerformanceCounterManager.cs
- DeploymentSection.cs
- ThreadAttributes.cs
- ColumnBinding.cs
- UrlAuthorizationModule.cs
- PropertyOverridesDialog.cs
- GeneralTransform.cs
- MatrixTransform.cs
- WinInetCache.cs
- XmlSchemaComplexContent.cs
- Selector.cs
- WebPartRestoreVerb.cs
- LayoutEditorPart.cs
- NullReferenceException.cs
- EntitySqlException.cs
- ActivityWithResultWrapper.cs
- InitializingNewItemEventArgs.cs
- NetCodeGroup.cs
- DiagnosticsConfigurationHandler.cs
- XMLSyntaxException.cs
- Brush.cs
- QilTernary.cs
- IntranetCredentialPolicy.cs
- CodeMemberEvent.cs
- CryptoKeySecurity.cs
- DocumentViewerBaseAutomationPeer.cs
- WorkflowTraceTransfer.cs
- HttpWrapper.cs
- DiagnosticsConfigurationHandler.cs
- RoutedCommand.cs
- ThreadSafeList.cs
- Missing.cs
- BamlVersionHeader.cs
- EntityTypeEmitter.cs
- CustomSignedXml.cs
- EntityCollectionChangedParams.cs