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
- StreamWithDictionary.cs
- ItemCollection.cs
- DiscoveryCallbackBehavior.cs
- ObjectPropertyMapping.cs
- FullTextBreakpoint.cs
- BmpBitmapDecoder.cs
- HitTestDrawingContextWalker.cs
- DataGridViewTopRowAccessibleObject.cs
- SqlCrossApplyToCrossJoin.cs
- ToolStripItemClickedEventArgs.cs
- ProxyGenerationError.cs
- ExpandSegment.cs
- GetBrowserTokenRequest.cs
- DateTimeSerializationSection.cs
- KeyNotFoundException.cs
- FlowLayout.cs
- RowParagraph.cs
- IdleTimeoutMonitor.cs
- Types.cs
- DataGridViewColumn.cs
- TaskFileService.cs
- _NetworkingPerfCounters.cs
- XmlCharCheckingWriter.cs
- WorkflowInlining.cs
- ToolStripDropDownClosingEventArgs.cs
- PathFigure.cs
- LambdaCompiler.Lambda.cs
- CompilerScopeManager.cs
- ListControl.cs
- SubMenuStyle.cs
- MarshalByRefObject.cs
- FormViewDeleteEventArgs.cs
- _IPv4Address.cs
- AuthorizationRuleCollection.cs
- Pts.cs
- LogManagementAsyncResult.cs
- Base64Stream.cs
- FacetChecker.cs
- SourceExpressionException.cs
- ImageCodecInfo.cs
- PromptStyle.cs
- XappLauncher.cs
- DataSourceXmlSubItemAttribute.cs
- QueryCreatedEventArgs.cs
- EntityDataSourceWrapperCollection.cs
- SqlRemoveConstantOrderBy.cs
- OdbcRowUpdatingEvent.cs
- BooleanKeyFrameCollection.cs
- StringStorage.cs
- FragmentNavigationEventArgs.cs
- ClientScriptManager.cs
- UIPermission.cs
- AncestorChangedEventArgs.cs
- ControlParser.cs
- SignedXml.cs
- Literal.cs
- Mutex.cs
- XPathNavigator.cs
- RowToFieldTransformer.cs
- DelegateTypeInfo.cs
- WebPartVerb.cs
- ContextBase.cs
- TextTreeText.cs
- LineBreakRecord.cs
- DesignerAutoFormatStyle.cs
- TreeSet.cs
- MoveSizeWinEventHandler.cs
- StreamGeometryContext.cs
- DocumentEventArgs.cs
- HierarchicalDataTemplate.cs
- safelink.cs
- FormatterConverter.cs
- RectIndependentAnimationStorage.cs
- MergeFailedEvent.cs
- Trace.cs
- DataServiceHost.cs
- TextTabProperties.cs
- Item.cs
- _ShellExpression.cs
- _SafeNetHandles.cs
- LinqDataSourceSelectEventArgs.cs
- QilDataSource.cs
- TrustLevel.cs
- SemanticResultValue.cs
- cookie.cs
- EditCommandColumn.cs
- RequestTimeoutManager.cs
- CompositeDuplexBindingElementImporter.cs
- UnauthorizedWebPart.cs
- ValidationErrorEventArgs.cs
- XmlReaderSettings.cs
- ManagementClass.cs
- AttributeAction.cs
- FontUnitConverter.cs
- FileSystemEventArgs.cs
- ObjectHandle.cs
- StringToken.cs
- TileModeValidation.cs
- AffineTransform3D.cs
- URLAttribute.cs