Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- XslNumber.cs
- SingleTagSectionHandler.cs
- TypographyProperties.cs
- ConfigDefinitionUpdates.cs
- PartialArray.cs
- GenerateTemporaryTargetAssembly.cs
- Identity.cs
- RectAnimationUsingKeyFrames.cs
- CssTextWriter.cs
- CreatingCookieEventArgs.cs
- DataSourceView.cs
- CompilerTypeWithParams.cs
- DataGridViewComboBoxColumn.cs
- EncodingDataItem.cs
- COAUTHIDENTITY.cs
- WorkerRequest.cs
- RecordsAffectedEventArgs.cs
- Operator.cs
- FactoryGenerator.cs
- DataTemplateSelector.cs
- ClientUrlResolverWrapper.cs
- UxThemeWrapper.cs
- HandlerBase.cs
- EventRouteFactory.cs
- DataTableMappingCollection.cs
- DynamicMethod.cs
- ViewBase.cs
- HMACSHA512.cs
- BitmapData.cs
- ToolStripSystemRenderer.cs
- URL.cs
- Trace.cs
- DbConnectionOptions.cs
- MenuAutomationPeer.cs
- DecodeHelper.cs
- ProfileSection.cs
- ExpressionPrinter.cs
- DiffuseMaterial.cs
- DictionaryEntry.cs
- EmptyCollection.cs
- ObjectSpanRewriter.cs
- Message.cs
- PageClientProxyGenerator.cs
- COMException.cs
- AvTrace.cs
- GridItemPattern.cs
- DBSqlParserTableCollection.cs
- HttpProfileBase.cs
- MediaSystem.cs
- OracleConnection.cs
- TypeDescriptionProviderAttribute.cs
- linebase.cs
- TextMarkerSource.cs
- mactripleDES.cs
- UserNameSecurityTokenProvider.cs
- CodeGeneratorOptions.cs
- CommandManager.cs
- ListBase.cs
- SqlCacheDependency.cs
- XmlNamedNodeMap.cs
- UpdateTranslator.cs
- HitTestParameters.cs
- MeasurementDCInfo.cs
- SmtpAuthenticationManager.cs
- ParameterCollection.cs
- ModifierKeysConverter.cs
- WorkflowExecutor.cs
- AsyncCodeActivityContext.cs
- ClientUtils.cs
- KnownBoxes.cs
- EUCJPEncoding.cs
- DataExchangeServiceBinder.cs
- ClosureBinding.cs
- PathNode.cs
- StyleBamlRecordReader.cs
- InertiaRotationBehavior.cs
- DrawingBrush.cs
- Brush.cs
- TypeDescriptor.cs
- StructuredTypeInfo.cs
- FacetChecker.cs
- COAUTHINFO.cs
- rsa.cs
- XmlDocument.cs
- RouteValueDictionary.cs
- DataSourceCache.cs
- ImageSourceValueSerializer.cs
- SQLGuid.cs
- LocalizableResourceBuilder.cs
- IssuanceTokenProviderState.cs
- MultiBindingExpression.cs
- XamlToRtfParser.cs
- Version.cs
- oledbmetadatacolumnnames.cs
- AtomServiceDocumentSerializer.cs
- XPathDocumentBuilder.cs
- HttpResponseWrapper.cs
- PrivilegedConfigurationManager.cs
- NoResizeHandleGlyph.cs
- ProviderConnectionPointCollection.cs