Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- ClrPerspective.cs
- OdbcConnectionString.cs
- XmlSchemaGroup.cs
- TextRangeAdaptor.cs
- WorkflowWebService.cs
- EventRouteFactory.cs
- UserPreferenceChangedEventArgs.cs
- BaseAsyncResult.cs
- figurelengthconverter.cs
- PasswordDeriveBytes.cs
- TextEndOfParagraph.cs
- XmlBinaryReader.cs
- SqlDependencyUtils.cs
- FastEncoderWindow.cs
- FileDialog_Vista_Interop.cs
- DbCommandTree.cs
- EnlistmentTraceIdentifier.cs
- MultiViewDesigner.cs
- DesignerHierarchicalDataSourceView.cs
- WebServiceErrorEvent.cs
- TdsParser.cs
- OptimisticConcurrencyException.cs
- TextRangeEditTables.cs
- SmtpFailedRecipientException.cs
- PropertyOverridesTypeEditor.cs
- KoreanLunisolarCalendar.cs
- DBConnection.cs
- ListControl.cs
- KeyBinding.cs
- MappingException.cs
- IsolatedStorage.cs
- SparseMemoryStream.cs
- WebPartEditorCancelVerb.cs
- FormsIdentity.cs
- FtpCachePolicyElement.cs
- AuthenticationModulesSection.cs
- RegexTree.cs
- TagMapCollection.cs
- XmlException.cs
- NameScopePropertyAttribute.cs
- XpsFilter.cs
- MergeFilterQuery.cs
- documentsequencetextpointer.cs
- BackgroundFormatInfo.cs
- HostSecurityManager.cs
- GetCardDetailsRequest.cs
- TagMapInfo.cs
- WindowsContainer.cs
- ConditionalAttribute.cs
- WindowsRebar.cs
- Win32KeyboardDevice.cs
- ComPlusThreadInitializer.cs
- XmlSchemaRedefine.cs
- PageBuildProvider.cs
- PopupEventArgs.cs
- ImportCatalogPart.cs
- SmtpReplyReader.cs
- EventMappingSettingsCollection.cs
- AesManaged.cs
- CharacterMetricsDictionary.cs
- SystemBrushes.cs
- UInt16Converter.cs
- DependencyObjectValidator.cs
- SqlDataSourceParameterParser.cs
- CheckStoreFileValidityRequest.cs
- WeakRefEnumerator.cs
- HtmlElement.cs
- ModelFactory.cs
- DecimalAnimationBase.cs
- WsdlInspector.cs
- TimeSpanStorage.cs
- AuthenticationModulesSection.cs
- ProjectionPathBuilder.cs
- IndexExpression.cs
- CommandDevice.cs
- CodeExporter.cs
- Authorization.cs
- TypographyProperties.cs
- NetCodeGroup.cs
- JsonReader.cs
- Message.cs
- AutomationPatternInfo.cs
- ServiceRoute.cs
- RowType.cs
- MenuEventArgs.cs
- Condition.cs
- SelectionEditor.cs
- FontDriver.cs
- CodeTypeDelegate.cs
- RtfControls.cs
- PasswordDeriveBytes.cs
- RtfNavigator.cs
- ServerIdentity.cs
- TimeEnumHelper.cs
- BitConverter.cs
- SqlDependencyUtils.cs
- RMEnrollmentPage2.cs
- FunctionCommandText.cs
- MaterialCollection.cs
- XmlILIndex.cs