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
- TableColumnCollection.cs
- EdmToObjectNamespaceMap.cs
- ButtonChrome.cs
- InboundActivityHelper.cs
- ClientRuntime.cs
- WmfPlaceableFileHeader.cs
- InvalidComObjectException.cs
- ActivityInterfaces.cs
- TimeoutHelper.cs
- FrameworkContentElementAutomationPeer.cs
- StorageTypeMapping.cs
- XomlCompilerHelpers.cs
- OutputCacheProfileCollection.cs
- DrawingVisualDrawingContext.cs
- CodeDirectiveCollection.cs
- OneOfConst.cs
- Type.cs
- OleDbTransaction.cs
- WeakReferenceEnumerator.cs
- CSharpCodeProvider.cs
- ProfileGroupSettings.cs
- SqlServer2KCompatibilityCheck.cs
- XPathBuilder.cs
- DecoderBestFitFallback.cs
- TabControlCancelEvent.cs
- ManagementObjectCollection.cs
- EditorAttribute.cs
- ValidationResult.cs
- CodeExpressionCollection.cs
- autovalidator.cs
- StreamWriter.cs
- ToolbarAUtomationPeer.cs
- RTTypeWrapper.cs
- DataBoundControlDesigner.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- RowUpdatingEventArgs.cs
- WpfPayload.cs
- DetailsViewInsertedEventArgs.cs
- PageVisual.cs
- XhtmlConformanceSection.cs
- TextPattern.cs
- XmlUtf8RawTextWriter.cs
- Image.cs
- TargetPerspective.cs
- DataKeyCollection.cs
- TypedTableBase.cs
- TypeConverter.cs
- XpsFont.cs
- PbrsForward.cs
- DataGridRow.cs
- AstNode.cs
- httpstaticobjectscollection.cs
- InheritedPropertyChangedEventArgs.cs
- ClaimTypes.cs
- _RequestCacheProtocol.cs
- HostVisual.cs
- ISAPIRuntime.cs
- AppDomainAttributes.cs
- BookmarkEventArgs.cs
- SqlConnectionStringBuilder.cs
- WebServicesDescriptionAttribute.cs
- RtfToXamlLexer.cs
- Win32MouseDevice.cs
- SplitterPanel.cs
- ApplicationContext.cs
- AssemblyResourceLoader.cs
- JsonUriDataContract.cs
- VirtualDirectoryMappingCollection.cs
- ItemsChangedEventArgs.cs
- SemanticBasicElement.cs
- SiteMapSection.cs
- ScriptResourceInfo.cs
- StylusButtonCollection.cs
- DataGridColumn.cs
- SHA256.cs
- ProtectedProviderSettings.cs
- ProtocolsSection.cs
- XmlDocumentFragment.cs
- TextTrailingCharacterEllipsis.cs
- ElementAction.cs
- IdnMapping.cs
- LoginUtil.cs
- ComplexBindingPropertiesAttribute.cs
- ButtonFieldBase.cs
- EdmToObjectNamespaceMap.cs
- Focus.cs
- ThreadSafeList.cs
- ListCollectionView.cs
- CancelEventArgs.cs
- ToolStripComboBox.cs
- MissingFieldException.cs
- ListSourceHelper.cs
- PageParserFilter.cs
- WorkflowServiceAttributes.cs
- SqlNotificationRequest.cs
- ParentUndoUnit.cs
- DoubleConverter.cs
- CustomCategoryAttribute.cs
- DropDownList.cs
- SvcMapFileLoader.cs