This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Windows Phone / Standard .NET: | |
// var mi = dataLoaderType.GetMethod(methodName, paramTypes); | |
// Windows 8 XAML Metro style app: | |
var mi = dataLoaderType.GetTypeInfo().GetDeclaredMethods(methodName); | |
MethodInfo actualMethod = null; | |
foreach (var method in mi) | |
{ | |
// Eeeew code. | |
var parameters = method.GetParameters(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Determines whether the specified object is an instance of the current Type. | |
/// </summary> | |
/// <param name="type">The type.</param> | |
/// <param name="o">The object to compare with the current type.</param> | |
/// <returns>true if the current Type is in the inheritance hierarchy of the | |
/// object represented by o, or if the current Type is an interface that o | |
/// supports. false if neither of these conditions is the case, or if o is | |
/// null, or if the current Type is an open generic type (that is, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install MongoDB on CentOS | |
cat > ./10gen.repo << "YUM10GEN" | |
[10gen] | |
name=10gen Repository | |
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64 | |
gpgcheck=0 | |
enabled=1 | |
YUM10GEN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (c) Microsoft Corporation and contributors. All rights reserved. | |
// Licensed under the MIT license. See LICENSE file in the project root for details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Copyright (c) Microsoft Corporation and contributors. All rights reserved. | |
// Licensed under the MIT license. See LICENSE file in the project root for details. | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Copyright (c) 2010-2011 Jeff Wilcox | |
// | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// | |
// Unless required by applicable law or agreed to in writing, software |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Copyright (c) 2010-2011 Jeff Wilcox | |
// | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// | |
// Unless required by applicable law or agreed to in writing, software |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Style TargetType="layoutToolkit:HeaderedContentControl"> | |
<Setter Property="HorizontalContentAlignment" Value="Left"/> | |
<Setter Property="VerticalContentAlignment" Value="Top"/> | |
<Setter Property="Template"> | |
<Setter.Value> | |
<ControlTemplate TargetType="layoutToolkit:HeaderedContentControl"> | |
<StackPanel> | |
<ContentPresenter | |
Content="{TemplateBinding Header}" | |
ContentTemplate="{TemplateBinding HeaderTemplate}" |
NewerOlder