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
- RegistryExceptionHelper.cs
- WebPartZone.cs
- EditorZoneBase.cs
- StackOverflowException.cs
- WorkflowItemPresenter.cs
- EmbeddedMailObject.cs
- NameValueConfigurationElement.cs
- CreateParams.cs
- Visual3D.cs
- FieldAccessException.cs
- BinaryReader.cs
- DataGridViewRowPostPaintEventArgs.cs
- FlowDocumentView.cs
- WebServiceFault.cs
- CodeNamespaceCollection.cs
- RegexRunner.cs
- DataSourceExpressionCollection.cs
- ToolStripPanel.cs
- BinaryParser.cs
- WebPartManagerInternals.cs
- DirectoryInfo.cs
- XmlToDatasetMap.cs
- Models.cs
- PenContext.cs
- PagerSettings.cs
- BasicCellRelation.cs
- SystemIPInterfaceProperties.cs
- GridViewColumn.cs
- BufferedGraphics.cs
- DrawingAttributes.cs
- InternalConfigSettingsFactory.cs
- SizeChangedEventArgs.cs
- FontWeights.cs
- _FtpControlStream.cs
- XmlDownloadManager.cs
- SecurityDocument.cs
- XamlFigureLengthSerializer.cs
- WebConfigurationFileMap.cs
- Buffer.cs
- DrawingServices.cs
- Parser.cs
- HandlerBase.cs
- BamlTreeUpdater.cs
- ButtonFlatAdapter.cs
- TextDecorationCollectionConverter.cs
- TimeoutException.cs
- ChannelOptions.cs
- SemaphoreFullException.cs
- UIElementParaClient.cs
- TableLayoutPanelResizeGlyph.cs
- InvalidWorkflowException.cs
- NamespaceDisplay.xaml.cs
- OneWayBindingElement.cs
- GetResponse.cs
- FormClosedEvent.cs
- InputScopeManager.cs
- ConfigXmlWhitespace.cs
- GenericArgumentsUpdater.cs
- FontFamily.cs
- SQLBinary.cs
- validationstate.cs
- Debug.cs
- prefixendpointaddressmessagefilter.cs
- PageThemeBuildProvider.cs
- TextContainer.cs
- ToolStripRenderer.cs
- ResXFileRef.cs
- ResourceKey.cs
- StickyNoteContentControl.cs
- ComplexObject.cs
- OpacityConverter.cs
- InputLanguageSource.cs
- ServiceBusyException.cs
- ObjectCacheSettings.cs
- GraphicsPath.cs
- MatrixCamera.cs
- PseudoWebRequest.cs
- SettingsSavedEventArgs.cs
- BitmapEffectState.cs
- ListViewPagedDataSource.cs
- SessionState.cs
- MouseWheelEventArgs.cs
- ColorConvertedBitmapExtension.cs
- WebBrowsableAttribute.cs
- LogStream.cs
- SecurityTokenRequirement.cs
- MimeObjectFactory.cs
- ProvidersHelper.cs
- ContactManager.cs
- ServerValidateEventArgs.cs
- autovalidator.cs
- ObjectItemCachedAssemblyLoader.cs
- DocumentGridContextMenu.cs
- BaseAsyncResult.cs
- KeyMatchBuilder.cs
- Size3DValueSerializer.cs
- control.ime.cs
- CompositionAdorner.cs
- DurableEnlistmentState.cs
- CursorInteropHelper.cs