Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- ClientUtils.cs
- ActionMessageFilterTable.cs
- HttpWriter.cs
- Timeline.cs
- ActiveXHelper.cs
- HMACSHA256.cs
- TypeValidationEventArgs.cs
- ProviderSettings.cs
- SetterBase.cs
- ImmComposition.cs
- DesignerVerb.cs
- ProgressBarRenderer.cs
- Lease.cs
- Selector.cs
- LifetimeServices.cs
- CngKeyBlobFormat.cs
- StylusPointPropertyInfo.cs
- DefaultProfileManager.cs
- CopyNamespacesAction.cs
- InfoCardSymmetricCrypto.cs
- SmiEventSink_Default.cs
- RequestUriProcessor.cs
- EncodingTable.cs
- VersionValidator.cs
- ConstraintManager.cs
- MethodToken.cs
- VerticalAlignConverter.cs
- ArithmeticException.cs
- AuthenticationConfig.cs
- X509RecipientCertificateClientElement.cs
- QueryTreeBuilder.cs
- FrameworkTemplate.cs
- RootBrowserWindowProxy.cs
- RectangleHotSpot.cs
- FormsAuthenticationUserCollection.cs
- SecureEnvironment.cs
- GeometryHitTestParameters.cs
- RegexWriter.cs
- CompiledRegexRunnerFactory.cs
- ToggleButtonAutomationPeer.cs
- CultureSpecificStringDictionary.cs
- ObjectTag.cs
- DetailsView.cs
- DependencyProperty.cs
- WebServicesInteroperability.cs
- HttpContext.cs
- TypeDelegator.cs
- MeshGeometry3D.cs
- OdbcConnectionStringbuilder.cs
- GridViewEditEventArgs.cs
- RsaSecurityToken.cs
- CngKey.cs
- InstanceData.cs
- InkCanvasSelectionAdorner.cs
- ObjectCloneHelper.cs
- BitmapSourceSafeMILHandle.cs
- GenericsInstances.cs
- CultureMapper.cs
- CharacterString.cs
- SchemaCollectionCompiler.cs
- ManualResetEvent.cs
- ShaderRenderModeValidation.cs
- NamedObject.cs
- DrawingGroup.cs
- IndicShape.cs
- StrongNamePublicKeyBlob.cs
- SafeWaitHandle.cs
- LeaseManager.cs
- CustomErrorsSectionWrapper.cs
- KeyPressEvent.cs
- XmlElementList.cs
- XmlDictionary.cs
- TemplateKeyConverter.cs
- EncodingInfo.cs
- Int16KeyFrameCollection.cs
- GridViewUpdatedEventArgs.cs
- ProfessionalColors.cs
- ModelItemCollectionImpl.cs
- WsatTransactionHeader.cs
- ServiceCredentials.cs
- compensatingcollection.cs
- HtmlControl.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- ViewgenContext.cs
- AuthenticationModeHelper.cs
- FirstMatchCodeGroup.cs
- FileDialog_Vista.cs
- SapiRecoContext.cs
- StreamInfo.cs
- UserControlParser.cs
- DesignerTransaction.cs
- TableRowGroupCollection.cs
- SqlHelper.cs
- VirtualDirectoryMapping.cs
- BinHexDecoder.cs
- PopupRootAutomationPeer.cs
- WindowsGraphicsWrapper.cs
- SystemIPGlobalProperties.cs
- SourceInterpreter.cs
- OdbcEnvironmentHandle.cs