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
- _RequestCacheProtocol.cs
- AttributeCollection.cs
- AbandonedMutexException.cs
- IApplicationTrustManager.cs
- RegexWorker.cs
- ContainerParagraph.cs
- xmlfixedPageInfo.cs
- Selection.cs
- SingleObjectCollection.cs
- StyleSelector.cs
- TypeCacheManager.cs
- KeyInstance.cs
- XmlExtensionFunction.cs
- ByValueEqualityComparer.cs
- InstanceNameConverter.cs
- ToolStripContentPanel.cs
- DbProviderFactoriesConfigurationHandler.cs
- FreezableCollection.cs
- UnionCodeGroup.cs
- SmiContext.cs
- DirectionalLight.cs
- DataTableReaderListener.cs
- ContentPosition.cs
- ThreadStaticAttribute.cs
- CompModSwitches.cs
- AttributeEmitter.cs
- Annotation.cs
- ConvertTextFrag.cs
- HandleRef.cs
- GridSplitter.cs
- FontSizeConverter.cs
- ContractsBCL.cs
- GB18030Encoding.cs
- CollectionChangeEventArgs.cs
- ImageFormatConverter.cs
- ItemCollection.cs
- LogicalExpressionTypeConverter.cs
- RenderDataDrawingContext.cs
- Vector3DValueSerializer.cs
- SimpleType.cs
- TextRangeAdaptor.cs
- JumpTask.cs
- AnnotationAdorner.cs
- LinkConverter.cs
- FillBehavior.cs
- HeaderedItemsControl.cs
- DisplayNameAttribute.cs
- coordinatorfactory.cs
- CodeStatementCollection.cs
- XmlSchemaInferenceException.cs
- CopyOnWriteList.cs
- ContainerControl.cs
- ApplicationBuildProvider.cs
- ListItemCollection.cs
- CopyAction.cs
- MenuItem.cs
- OpenFileDialog.cs
- SimpleBitVector32.cs
- PartialArray.cs
- ProfileProvider.cs
- DomainUpDown.cs
- DataGridViewColumnEventArgs.cs
- StrokeSerializer.cs
- HandlerWithFactory.cs
- ProcessModule.cs
- DataSourceComponent.cs
- __ComObject.cs
- DataGridClipboardHelper.cs
- CodeDelegateCreateExpression.cs
- PathHelper.cs
- CodeTryCatchFinallyStatement.cs
- TransactionScopeDesigner.cs
- FamilyTypeface.cs
- ZipIOFileItemStream.cs
- AuthenticationException.cs
- QilInvokeLateBound.cs
- DataRelationPropertyDescriptor.cs
- DtrList.cs
- WinHttpWebProxyFinder.cs
- XPathNodeList.cs
- InternalConfigHost.cs
- ReturnValue.cs
- BooleanKeyFrameCollection.cs
- path.cs
- MimeReflector.cs
- SystemFonts.cs
- sqlinternaltransaction.cs
- StandardBindingOptionalReliableSessionElement.cs
- util.cs
- DataGridPagingPage.cs
- ApplicationDirectory.cs
- Schedule.cs
- Instrumentation.cs
- RemotingConfigParser.cs
- HtmlInputFile.cs
- ServiceDescriptionSerializer.cs
- BufferBuilder.cs
- DocumentXmlWriter.cs
- NumberFunctions.cs
- AssemblyAttributesGoHere.cs