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
- ItemsChangedEventArgs.cs
- mda.cs
- ReaderWriterLock.cs
- TogglePatternIdentifiers.cs
- XmlnsDictionary.cs
- VolatileEnlistmentState.cs
- PnrpPermission.cs
- ServiceBusyException.cs
- SqlNodeTypeOperators.cs
- RootDesignerSerializerAttribute.cs
- ButtonField.cs
- QueryRelOp.cs
- MemberExpressionHelper.cs
- ComboBox.cs
- PropertyTab.cs
- TextModifier.cs
- BooleanToVisibilityConverter.cs
- Type.cs
- __ConsoleStream.cs
- XmlCustomFormatter.cs
- XmlAttributeCache.cs
- TimerElapsedEvenArgs.cs
- QuerySubExprEliminator.cs
- NotifyInputEventArgs.cs
- PreProcessInputEventArgs.cs
- SystemResourceKey.cs
- SqlFacetAttribute.cs
- ScriptingScriptResourceHandlerSection.cs
- ClientSettings.cs
- XmlDigitalSignatureProcessor.cs
- TimeSpanSecondsConverter.cs
- ObjectStateEntry.cs
- RecommendedAsConfigurableAttribute.cs
- RepeatInfo.cs
- UpdatePanelControlTrigger.cs
- DbConnectionPoolGroup.cs
- __Filters.cs
- UserPrincipalNameElement.cs
- DispatcherSynchronizationContext.cs
- CqlLexerHelpers.cs
- entityreference_tresulttype.cs
- TakeOrSkipQueryOperator.cs
- WindowsImpersonationContext.cs
- EnumUnknown.cs
- SerializationFieldInfo.cs
- RIPEMD160Managed.cs
- IDQuery.cs
- SerialErrors.cs
- DataGridViewSelectedCellCollection.cs
- HtmlLink.cs
- CurrentTimeZone.cs
- ObjectComplexPropertyMapping.cs
- DataRow.cs
- ManagementObject.cs
- WebSysDefaultValueAttribute.cs
- XmlChildNodes.cs
- Matrix3D.cs
- ComNativeDescriptor.cs
- SingleResultAttribute.cs
- ReadWriteSpinLock.cs
- DependencyProperty.cs
- TrailingSpaceComparer.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- FontUnit.cs
- RC2CryptoServiceProvider.cs
- WebServiceTypeData.cs
- MapPathBasedVirtualPathProvider.cs
- WindowInteractionStateTracker.cs
- CultureSpecificCharacterBufferRange.cs
- ApplicationException.cs
- TableDetailsRow.cs
- ResourceManagerWrapper.cs
- MaskedTextBoxDesignerActionList.cs
- MonthCalendar.cs
- FunctionDetailsReader.cs
- FieldAccessException.cs
- DisplayInformation.cs
- HttpListenerElement.cs
- SimpleType.cs
- DataRowView.cs
- SystemIPGlobalProperties.cs
- RoleGroup.cs
- LambdaCompiler.Lambda.cs
- Interop.cs
- SqlXml.cs
- HttpModuleAction.cs
- ResourceDictionary.cs
- DataTable.cs
- WebSysDescriptionAttribute.cs
- Command.cs
- MimeWriter.cs
- DataGridColumn.cs
- PropagatorResult.cs
- SettingsPropertyValue.cs
- ViewStateModeByIdAttribute.cs
- _SslSessionsCache.cs
- CurrencyWrapper.cs
- ContentPropertyAttribute.cs
- ButtonAutomationPeer.cs
- SqlDesignerDataSourceView.cs