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
- ConnectionPointCookie.cs
- EntityDesignerBuildProvider.cs
- EventTask.cs
- EnumValAlphaComparer.cs
- Internal.cs
- XmlSortKey.cs
- SmuggledIUnknown.cs
- DetailsViewDeleteEventArgs.cs
- DockingAttribute.cs
- HandlerBase.cs
- PropertyIDSet.cs
- XmlDataSourceNodeDescriptor.cs
- MobileComponentEditorPage.cs
- Pair.cs
- TransformGroup.cs
- SQLStringStorage.cs
- JsonReader.cs
- ResXFileRef.cs
- UriScheme.cs
- EdmItemCollection.OcAssemblyCache.cs
- EntityTransaction.cs
- PrivilegedConfigurationManager.cs
- StickyNoteHelper.cs
- SiteMapNodeItem.cs
- SubMenuStyleCollection.cs
- XPathBinder.cs
- AddInToken.cs
- EventData.cs
- ObjectStateFormatter.cs
- RequiredFieldValidator.cs
- DesignSurface.cs
- ParserStreamGeometryContext.cs
- WebConfigurationHostFileChange.cs
- IntSecurity.cs
- DataGridViewCheckBoxCell.cs
- documentsequencetextpointer.cs
- WindowsListViewItemStartMenu.cs
- PartialCachingAttribute.cs
- ResourceProperty.cs
- DynamicControlParameter.cs
- CannotUnloadAppDomainException.cs
- DataGridItemCollection.cs
- GuidTagList.cs
- SchemaHelper.cs
- IdnMapping.cs
- XmlSequenceWriter.cs
- CodeDesigner.cs
- SqlInternalConnectionSmi.cs
- BitmapDecoder.cs
- XPathNodeList.cs
- FileCodeGroup.cs
- EntityWrapper.cs
- MarkupCompiler.cs
- SecurityAttributeGenerationHelper.cs
- NativeRecognizer.cs
- InvalidComObjectException.cs
- FontUnitConverter.cs
- NativeMethods.cs
- DynamicResourceExtensionConverter.cs
- SvcMapFileSerializer.cs
- PopupRootAutomationPeer.cs
- SoundPlayer.cs
- InternalEnumValidator.cs
- ToolBarButtonClickEvent.cs
- CheckPair.cs
- PropertyItemInternal.cs
- TypeSemantics.cs
- WebServiceAttribute.cs
- Operator.cs
- Partitioner.cs
- ArraySubsetEnumerator.cs
- ToolStripSettings.cs
- OrderPreservingPipeliningSpoolingTask.cs
- UIntPtr.cs
- InfoCardTraceRecord.cs
- ManagementPath.cs
- AutomationPatternInfo.cs
- ConnectionStringSettingsCollection.cs
- OleDbConnectionInternal.cs
- MetadataSource.cs
- CompModSwitches.cs
- TextEmbeddedObject.cs
- HoistedLocals.cs
- AdapterDictionary.cs
- XhtmlBasicTextViewAdapter.cs
- XmlEnumAttribute.cs
- MetadataHelper.cs
- HttpDebugHandler.cs
- Table.cs
- RootBrowserWindow.cs
- InheritanceContextHelper.cs
- SqlCrossApplyToCrossJoin.cs
- TypeConverter.cs
- Repeater.cs
- OutputCacheSettings.cs
- FileEnumerator.cs
- Section.cs
- PropertyChangedEventManager.cs
- ByteRangeDownloader.cs
- VScrollProperties.cs