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
- SystemDiagnosticsSection.cs
- ThreadLocal.cs
- TableRowGroup.cs
- CodeMemberField.cs
- TextFormatterHost.cs
- ListViewHitTestInfo.cs
- FieldToken.cs
- PropertyNames.cs
- ContextBase.cs
- SettingsPropertyIsReadOnlyException.cs
- DbExpressionBuilder.cs
- LassoHelper.cs
- DataGridViewImageColumn.cs
- Parameter.cs
- WindowsProgressbar.cs
- RoleService.cs
- ObjectStorage.cs
- DiagnosticTraceSource.cs
- BufferedReadStream.cs
- CollectionViewGroupInternal.cs
- AttributeEmitter.cs
- LineVisual.cs
- NoneExcludedImageIndexConverter.cs
- DataSourceCollectionBase.cs
- ScrollBar.cs
- MenuItem.cs
- ChooseAction.cs
- ZipIOExtraFieldElement.cs
- ShapingWorkspace.cs
- DataGridViewButtonColumn.cs
- WebPermission.cs
- WindowsAuthenticationModule.cs
- PresentationTraceSources.cs
- JournalEntryStack.cs
- ConfigurationValidatorAttribute.cs
- ProcessingInstructionAction.cs
- DataTableNewRowEvent.cs
- SystemIcons.cs
- SpellCheck.cs
- CallbackTimeoutsBehavior.cs
- ComponentEditorPage.cs
- ServerIdentity.cs
- DbDataRecord.cs
- WebReference.cs
- TraceSection.cs
- PageThemeParser.cs
- WebBrowserUriTypeConverter.cs
- FixedHyperLink.cs
- CSharpCodeProvider.cs
- MD5CryptoServiceProvider.cs
- FixedBufferAttribute.cs
- Serializer.cs
- SchemaMerger.cs
- EncodingStreamWrapper.cs
- RelationshipDetailsRow.cs
- Socket.cs
- LocalizedNameDescriptionPair.cs
- TreeSet.cs
- RemotingAttributes.cs
- UserControl.cs
- CollectionViewProxy.cs
- InfiniteIntConverter.cs
- XmlTextReader.cs
- ToolStripDropDownItem.cs
- ImportContext.cs
- RelationshipDetailsRow.cs
- DebugInfo.cs
- ScaleTransform.cs
- MarshalDirectiveException.cs
- ErrorView.xaml.cs
- WebPartsSection.cs
- PinProtectionHelper.cs
- ExpressionHelper.cs
- BoolExpr.cs
- IList.cs
- SqlTriggerAttribute.cs
- InputReportEventArgs.cs
- WebServiceHandlerFactory.cs
- SingleTagSectionHandler.cs
- SessionEndingEventArgs.cs
- ConvertEvent.cs
- ExtenderControl.cs
- TemplateAction.cs
- bidPrivateBase.cs
- Annotation.cs
- AutomationPatternInfo.cs
- LassoHelper.cs
- FormViewUpdateEventArgs.cs
- Merger.cs
- PresentationAppDomainManager.cs
- FontInfo.cs
- remotingproxy.cs
- PageRanges.cs
- PrintDialog.cs
- Point4DConverter.cs
- Int64AnimationBase.cs
- CmsInterop.cs
- ExtractedStateEntry.cs
- SortAction.cs
- FontFamily.cs