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
- RootBrowserWindowProxy.cs
- PassportAuthenticationEventArgs.cs
- BindingNavigator.cs
- BitmapPalette.cs
- ColorPalette.cs
- ApplicationDirectory.cs
- DesignerDataTable.cs
- printdlgexmarshaler.cs
- Mapping.cs
- OrderedDictionary.cs
- XamlGridLengthSerializer.cs
- FragmentQueryKB.cs
- EqualityComparer.cs
- MasterPage.cs
- FlowDocumentFormatter.cs
- EntityContainerEmitter.cs
- AutomationProperties.cs
- HttpModuleActionCollection.cs
- MappingModelBuildProvider.cs
- ZipIOCentralDirectoryFileHeader.cs
- XPathScanner.cs
- ObjectDataSource.cs
- ProxyGenerationError.cs
- StringConverter.cs
- KeyGestureValueSerializer.cs
- EraserBehavior.cs
- OdbcConnectionOpen.cs
- KnownIds.cs
- sqlnorm.cs
- ValidateNames.cs
- __Filters.cs
- TracePayload.cs
- UserInitiatedNavigationPermission.cs
- COSERVERINFO.cs
- RealizationContext.cs
- StrongBox.cs
- XPathDocumentNavigator.cs
- Command.cs
- Internal.cs
- CharStorage.cs
- SQLDateTime.cs
- SkipQueryOptionExpression.cs
- DataList.cs
- ActivityPropertyReference.cs
- _HeaderInfo.cs
- PropVariant.cs
- WsdlInspector.cs
- GifBitmapEncoder.cs
- PackageProperties.cs
- HtmlLabelAdapter.cs
- XmlSchema.cs
- DataGridBoundColumn.cs
- ComplexObject.cs
- ServiceParser.cs
- PropertyPathConverter.cs
- ResolveResponseInfo.cs
- EventKeyword.cs
- HtmlInputPassword.cs
- SelfIssuedAuthRSACryptoProvider.cs
- X509CertificateRecipientServiceCredential.cs
- DependencyPropertyHelper.cs
- SafeCryptoHandles.cs
- NullRuntimeConfig.cs
- IndexExpression.cs
- COM2Enum.cs
- Base64Decoder.cs
- SecurityTraceRecordHelper.cs
- CompilerInfo.cs
- DrawingGroup.cs
- DataServiceKeyAttribute.cs
- LoginDesignerUtil.cs
- GridViewColumnHeader.cs
- TargetInvocationException.cs
- DbCommandTree.cs
- LinkArea.cs
- NotifyInputEventArgs.cs
- Workspace.cs
- TogglePatternIdentifiers.cs
- ScriptRegistrationManager.cs
- DocumentationServerProtocol.cs
- BitmapData.cs
- RenderTargetBitmap.cs
- NameNode.cs
- ComponentEditorPage.cs
- ActivityDesignerHighlighter.cs
- SecurityContextCookieSerializer.cs
- AbandonedMutexException.cs
- InfiniteIntConverter.cs
- nulltextcontainer.cs
- ControlParameter.cs
- SingleObjectCollection.cs
- EtwTrace.cs
- RequestCacheManager.cs
- SafePEFileHandle.cs
- XmlSchemaInfo.cs
- Event.cs
- FontInfo.cs
- InternalConfigConfigurationFactory.cs
- Tablet.cs
- XsltQilFactory.cs