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
- X509ChainElement.cs
- altserialization.cs
- Stackframe.cs
- StringReader.cs
- ContractMapping.cs
- ComplexPropertyEntry.cs
- PasswordRecovery.cs
- AuthenticationService.cs
- HtmlEncodedRawTextWriter.cs
- CodeDirectionExpression.cs
- TextRunCacheImp.cs
- Attributes.cs
- WindowsSecurityToken.cs
- Panel.cs
- Grammar.cs
- ThreadBehavior.cs
- OleDbSchemaGuid.cs
- EdmScalarPropertyAttribute.cs
- TextElement.cs
- SQLStringStorage.cs
- XmlReflectionMember.cs
- WebPartTransformer.cs
- RefreshEventArgs.cs
- HttpResponseHeader.cs
- TriState.cs
- DashStyles.cs
- XmlSchemaCompilationSettings.cs
- GenericIdentity.cs
- JoinCqlBlock.cs
- HttpListenerResponse.cs
- RangeValidator.cs
- WpfKnownMemberInvoker.cs
- TextLineBreak.cs
- SharedHttpTransportManager.cs
- DrawingContext.cs
- ToolStripGripRenderEventArgs.cs
- ApplicationSettingsBase.cs
- StateDesigner.Helpers.cs
- ConfigurationSettings.cs
- WindowsButton.cs
- XmlSchemaAttributeGroup.cs
- LazyTextWriterCreator.cs
- Aes.cs
- SafeNativeMethodsMilCoreApi.cs
- DataGridViewRowHeaderCell.cs
- SystemIPv6InterfaceProperties.cs
- BeginStoryboard.cs
- CaseStatement.cs
- MgmtResManager.cs
- MouseEvent.cs
- ErrorTableItemStyle.cs
- ToolTip.cs
- DataGridBoolColumn.cs
- TextCompositionManager.cs
- GuidelineSet.cs
- ByteAnimationBase.cs
- XmlAnyElementAttribute.cs
- HashMembershipCondition.cs
- diagnosticsswitches.cs
- StyleCollectionEditor.cs
- ThicknessAnimation.cs
- DrawListViewItemEventArgs.cs
- EntitySetRetriever.cs
- DataGridViewCellCollection.cs
- ControlBindingsCollection.cs
- ItemCheckedEvent.cs
- DataSourceHelper.cs
- NetTcpSecurity.cs
- PassportAuthenticationEventArgs.cs
- ConsumerConnectionPointCollection.cs
- HScrollBar.cs
- UserNamePasswordValidator.cs
- JournalNavigationScope.cs
- PersistChildrenAttribute.cs
- ThreadStaticAttribute.cs
- KeyPressEvent.cs
- Constraint.cs
- ArraySortHelper.cs
- TextTrailingWordEllipsis.cs
- SortAction.cs
- CacheOutputQuery.cs
- IncrementalCompileAnalyzer.cs
- ColumnHeaderConverter.cs
- IgnoreSection.cs
- Char.cs
- HttpRequestWrapper.cs
- SpecialFolderEnumConverter.cs
- UnlockCardRequest.cs
- SqlPersonalizationProvider.cs
- EditorBrowsableAttribute.cs
- WebPartCatalogCloseVerb.cs
- XmlSerializerNamespaces.cs
- QilGeneratorEnv.cs
- RequestFactory.cs
- XamlWriter.cs
- EntityDescriptor.cs
- CopyOnWriteList.cs
- streamingZipPartStream.cs
- HttpHandlerAction.cs
- WebPartDescription.cs