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
- TypeDescriptor.cs
- CodeTypeParameter.cs
- CodeNamespaceImportCollection.cs
- Win32SafeHandles.cs
- TrackingProfileDeserializationException.cs
- TableCellCollection.cs
- ContextMenu.cs
- AssemblyCollection.cs
- CapabilitiesState.cs
- BookmarkScope.cs
- FixedPageProcessor.cs
- WindowsFormsHelpers.cs
- HandlerBase.cs
- XPathNodeList.cs
- X509ChainPolicy.cs
- PageRouteHandler.cs
- DynamicILGenerator.cs
- XmlArrayAttribute.cs
- BaseTemplateBuildProvider.cs
- SqlClientWrapperSmiStream.cs
- HtmlSelect.cs
- XsdCachingReader.cs
- AppDomainUnloadedException.cs
- DataChangedEventManager.cs
- SplitContainerDesigner.cs
- CheckBoxAutomationPeer.cs
- EntityDataSourceContainerNameConverter.cs
- MediaTimeline.cs
- SafeHandle.cs
- listitem.cs
- ThemeDictionaryExtension.cs
- KnownTypesProvider.cs
- PropVariant.cs
- CodeDirectoryCompiler.cs
- VerticalAlignConverter.cs
- StatusBarItemAutomationPeer.cs
- ToolStripSettings.cs
- DynamicILGenerator.cs
- IndentTextWriter.cs
- DBNull.cs
- FileSystemWatcher.cs
- TraceUtils.cs
- DataStorage.cs
- AttributeParameterInfo.cs
- PropertyMap.cs
- IUnknownConstantAttribute.cs
- RuntimeIdentifierPropertyAttribute.cs
- XmlBoundElement.cs
- XmlAttributeProperties.cs
- TraceLog.cs
- SoapServerMethod.cs
- objectquery_tresulttype.cs
- SqlProviderServices.cs
- SecureConversationServiceElement.cs
- ListViewEditEventArgs.cs
- SamlEvidence.cs
- MemoryPressure.cs
- DependencyPropertyChangedEventArgs.cs
- UrlMapping.cs
- ParentQuery.cs
- DispatcherExceptionEventArgs.cs
- mactripleDES.cs
- XmlDataDocument.cs
- DataGridItemCollection.cs
- BuildResult.cs
- ExceptionUtil.cs
- OdbcDataAdapter.cs
- DateTimePicker.cs
- DataBoundControl.cs
- DataContractSerializer.cs
- FamilyMapCollection.cs
- BooleanToVisibilityConverter.cs
- TransformerInfo.cs
- DataBindEngine.cs
- ButtonStandardAdapter.cs
- CellQuery.cs
- DispatcherProcessingDisabled.cs
- TransactionFlowProperty.cs
- EventlogProvider.cs
- GenericIdentity.cs
- XmlSerializerOperationGenerator.cs
- BufferAllocator.cs
- DbConnectionPoolCounters.cs
- CustomExpression.cs
- EncodingNLS.cs
- ReachDocumentReferenceSerializer.cs
- ConfigurationPropertyAttribute.cs
- AsmxEndpointPickerExtension.cs
- ActivityTypeResolver.xaml.cs
- TextWriter.cs
- WindowsScrollBar.cs
- GridView.cs
- Gdiplus.cs
- TypeUtil.cs
- ThumbButtonInfo.cs
- Rotation3DAnimationBase.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- Tokenizer.cs
- EventProviderWriter.cs
- Win32Interop.cs