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
- RegisteredHiddenField.cs
- NullReferenceException.cs
- CodeMemberEvent.cs
- GridViewColumnHeader.cs
- UnsafeNativeMethods.cs
- SafeNativeMethods.cs
- FontSourceCollection.cs
- SettingsPropertyWrongTypeException.cs
- PeerName.cs
- ASCIIEncoding.cs
- SelectionListDesigner.cs
- SamlAction.cs
- ComboBoxRenderer.cs
- ConditionCollection.cs
- CompilerTypeWithParams.cs
- XmlSecureResolver.cs
- MenuItemCollection.cs
- DynamicResourceExtension.cs
- MissingManifestResourceException.cs
- _HeaderInfoTable.cs
- Visitors.cs
- DataGridViewCellParsingEventArgs.cs
- ChtmlTextWriter.cs
- ExtendedPropertyDescriptor.cs
- ActivityInterfaces.cs
- WebPartTransformerCollection.cs
- TranslateTransform3D.cs
- AccessibleObject.cs
- QueryCursorEventArgs.cs
- DBConcurrencyException.cs
- NewExpression.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- RepeatButton.cs
- ToolCreatedEventArgs.cs
- XmlHierarchicalEnumerable.cs
- CanonicalXml.cs
- CompressedStack.cs
- COM2ComponentEditor.cs
- HttpWriter.cs
- TreeBuilderXamlTranslator.cs
- ProxyWebPart.cs
- CancellationTokenSource.cs
- CombinedGeometry.cs
- DesignTimeTemplateParser.cs
- Compiler.cs
- PropertyEntry.cs
- PrincipalPermission.cs
- AttributeXamlType.cs
- XmlValidatingReaderImpl.cs
- Cursors.cs
- ContainerParaClient.cs
- OleDbCommandBuilder.cs
- DataGridAddNewRow.cs
- TokenizerHelper.cs
- PointConverter.cs
- DbProviderFactory.cs
- ProfileServiceManager.cs
- securitycriticaldataClass.cs
- SQLBinary.cs
- AesManaged.cs
- ACL.cs
- ResourceLoader.cs
- XmlName.cs
- DateTimePicker.cs
- Console.cs
- CopyNamespacesAction.cs
- CollectionViewSource.cs
- NativeMethods.cs
- RtType.cs
- EditBehavior.cs
- StatusBarAutomationPeer.cs
- LinkDescriptor.cs
- ValidationHelper.cs
- ServiceAppDomainAssociationProvider.cs
- ProcessModuleCollection.cs
- TokenBasedSetEnumerator.cs
- GridItemProviderWrapper.cs
- Permission.cs
- PanelDesigner.cs
- Int64.cs
- AppSettingsExpressionBuilder.cs
- LinqDataSourceSelectEventArgs.cs
- MailHeaderInfo.cs
- XmlSchemaInclude.cs
- InputProcessorProfilesLoader.cs
- PropertyConverter.cs
- InlineCategoriesDocument.cs
- MimeTextImporter.cs
- IntSecurity.cs
- LassoHelper.cs
- PropertyDescriptorGridEntry.cs
- QilBinary.cs
- AsymmetricAlgorithm.cs
- GroupQuery.cs
- AttributedMetaModel.cs
- Slider.cs
- Models.cs
- ReflectionServiceProvider.cs
- AsyncContentLoadedEventArgs.cs
- PinnedBufferMemoryStream.cs