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
- IsolatedStorageFileStream.cs
- CodeAttributeDeclaration.cs
- DataControlCommands.cs
- AllowedAudienceUriElementCollection.cs
- FilteredReadOnlyMetadataCollection.cs
- MenuItemBindingCollection.cs
- Main.cs
- SerializableAttribute.cs
- WebBrowserContainer.cs
- DataGrid.cs
- ListenerElementsCollection.cs
- NumberSubstitution.cs
- ThumbButtonInfoCollection.cs
- VectorAnimationBase.cs
- EncodingTable.cs
- ProcessStartInfo.cs
- DataGridState.cs
- HtmlTable.cs
- CodeFieldReferenceExpression.cs
- ValidatingReaderNodeData.cs
- DataKeyPropertyAttribute.cs
- AdapterUtil.cs
- UnsafeNativeMethods.cs
- DataGridHeaderBorder.cs
- MatrixTransform.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- ScriptingJsonSerializationSection.cs
- HttpPostedFile.cs
- SpellCheck.cs
- InstanceKeyView.cs
- WeakReadOnlyCollection.cs
- _LocalDataStore.cs
- DelegatedStream.cs
- XPathExpr.cs
- WindowsPen.cs
- streamingZipPartStream.cs
- TypeInformation.cs
- DecoderExceptionFallback.cs
- WsiProfilesElementCollection.cs
- FixedSOMContainer.cs
- MessageDecoder.cs
- TimelineClockCollection.cs
- WebBrowser.cs
- RenderTargetBitmap.cs
- CompilerLocalReference.cs
- RequiredFieldValidator.cs
- CodeExporter.cs
- MouseEventArgs.cs
- DataGridItemAutomationPeer.cs
- DataGridViewCheckBoxCell.cs
- OleDbConnectionInternal.cs
- WorkflowApplicationCompletedEventArgs.cs
- StylusDevice.cs
- DecimalConverter.cs
- SHA1CryptoServiceProvider.cs
- BamlBinaryWriter.cs
- BlurBitmapEffect.cs
- ContextMenu.cs
- ModuleElement.cs
- CompletionBookmark.cs
- CacheChildrenQuery.cs
- XNodeNavigator.cs
- SerializationInfoEnumerator.cs
- ScrollItemPattern.cs
- SizeAnimationUsingKeyFrames.cs
- TreeNodeEventArgs.cs
- HtmlControlPersistable.cs
- ArcSegment.cs
- _IPv4Address.cs
- KeyConverter.cs
- WebEncodingValidatorAttribute.cs
- Region.cs
- BitmapMetadataBlob.cs
- MessageHeaderT.cs
- WebPartsPersonalization.cs
- PageBuildProvider.cs
- IndexedGlyphRun.cs
- Profiler.cs
- XmlSchemas.cs
- SharedPersonalizationStateInfo.cs
- RoleBoolean.cs
- LabelDesigner.cs
- SevenBitStream.cs
- DispatcherObject.cs
- ConnectionStringSettingsCollection.cs
- SqlUtils.cs
- PropertyMetadata.cs
- ExceptionWrapper.cs
- PerfCounters.cs
- Message.cs
- ChildrenQuery.cs
- AnonymousIdentificationSection.cs
- ClickablePoint.cs
- shaperfactory.cs
- Win32.cs
- StatusBarItemAutomationPeer.cs
- CodeGenHelper.cs
- InstanceKeyCompleteException.cs
- panel.cs
- TextSpanModifier.cs