content stringlengths 5 1.04M | avg_line_length float64 1.75 12.9k | max_line_length int64 2 244k | alphanum_fraction float64 0 0.98 | licenses list | repository_name stringlengths 7 92 | path stringlengths 3 249 | size int64 5 1.04M | lang stringclasses 2 values |
|---|---|---|---|---|---|---|---|---|
using System;
using System.Drawing;
using System.IO;
using System.Text.Json;
using System.Text.Json.Serialization;
namespace Outlines.Core
{
public class Snapshot
{
public double ScaleFactor { get; set; }
public string ScreenshotFilePath { get; set; }
public string ScreenshotBase64 { get; set; }
public UITreeNode UITree { get; set; }
private Image screenshot = null;
[JsonIgnore]
public Image Screenshot
{
get
{
EnsureScreenshot();
return screenshot;
}
set
{
screenshot = value;
}
}
private void EnsureScreenshot()
{
if (screenshot != null)
{
return;
}
if (!string.IsNullOrWhiteSpace(ScreenshotBase64))
{
byte[] bytes = Convert.FromBase64String(ScreenshotBase64);
using (var memoryStream = new MemoryStream(bytes))
{
screenshot = Image.FromStream(memoryStream);
}
}
else if (!string.IsNullOrWhiteSpace(ScreenshotFilePath) && File.Exists(ScreenshotFilePath))
{
using (var screenshotImage = Image.FromFile(ScreenshotFilePath))
{
screenshot = new Bitmap(screenshotImage);
}
}
}
public static Snapshot LoadFromFile(string filePath)
{
if (string.IsNullOrWhiteSpace(filePath) || !File.Exists(filePath))
{
return null;
}
string snapshotJson = File.ReadAllText(filePath);
return JsonSerializer.Deserialize<Snapshot>(snapshotJson, new JsonSerializerOptions { PropertyNameCaseInsensitive = true});
}
}
}
| 28.462687 | 135 | 0.527006 | [
"MIT"
] | Remi05/outlines | Outlines.Core/Snapshot.cs | 1,909 | C# |
namespace RentCar.Services {
class BrazilTaxServices : ITaxService {
public double Tax(double amount) {
if (amount <= 100.0) {
return amount * 0.2;
}
else {
return amount * 0.15;
}
}
}
}
| 21 | 43 | 0.438776 | [
"MIT"
] | jaquelinesilfe/RentCar | Services/BrazilTaxServices.cs | 296 | C# |
// Copyright © 2011 - Present RealDimensions Software, LLC
//
// 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
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
namespace chocolatey.tests.integration.scenarios
{
using System.Collections.Generic;
using System.Linq;
using NuGet;
using Should;
using bdddoc.core;
using chocolatey.infrastructure.app;
using chocolatey.infrastructure.app.commands;
using chocolatey.infrastructure.app.configuration;
using chocolatey.infrastructure.app.services;
using chocolatey.infrastructure.results;
public class ListScenarios
{
public abstract class ScenariosBase : TinySpec
{
protected IList<PackageResult> Results;
protected ChocolateyConfiguration Configuration;
protected IChocolateyPackageService Service;
public override void Context()
{
Configuration = Scenario.list();
Scenario.reset(Configuration);
Scenario.add_packages_to_source_location(Configuration, Configuration.Input + "*" + Constants.PackageExtension);
Scenario.add_packages_to_source_location(Configuration, "installpackage*" + Constants.PackageExtension);
Scenario.install_package(Configuration, "installpackage", "1.0.0");
Scenario.install_package(Configuration, "upgradepackage", "1.0.0");
Service = NUnitSetup.Container.GetInstance<IChocolateyPackageService>();
}
}
[Concern(typeof(ChocolateyListCommand))]
public class when_searching_packages_with_no_filter_happy_path : ScenariosBase
{
public override void Because()
{
MockLogger.reset();
Results = Service.list_run(Configuration).ToList();
}
[Fact]
public void should_list_available_packages_only_once()
{
MockLogger.contains_message_count("upgradepackage").ShouldEqual(1);
}
[Fact]
public void should_contain_packages_and_versions_with_a_space_between_them()
{
MockLogger.contains_message("upgradepackage 1.1.0").ShouldBeTrue();
}
[Fact]
public void should_not_contain_packages_and_versions_with_a_pipe_between_them()
{
MockLogger.contains_message("upgradepackage|1.1.0").ShouldBeFalse();
}
[Fact]
public void should_contain_a_summary()
{
MockLogger.contains_message("packages found").ShouldBeTrue();
}
[Fact]
public void should_contain_debugging_messages()
{
MockLogger.contains_message("Searching for package information", LogLevel.Debug).ShouldBeTrue();
MockLogger.contains_message("Running list with the following filter", LogLevel.Debug).ShouldBeTrue();
MockLogger.contains_message("Start of List", LogLevel.Debug).ShouldBeTrue();
MockLogger.contains_message("End of List", LogLevel.Debug).ShouldBeTrue();
}
}
[Concern(typeof(ChocolateyListCommand))]
public class when_searching_for_a_particular_package : ScenariosBase
{
public override void Context()
{
base.Context();
Configuration.Input = Configuration.PackageNames = "upgradepackage";
}
public override void Because()
{
MockLogger.reset();
Results = Service.list_run(Configuration).ToList();
}
[Fact]
public void should_contain_packages_and_versions_with_a_space_between_them()
{
MockLogger.contains_message("upgradepackage 1.1.0").ShouldBeTrue();
}
[Fact]
public void should_not_contain_packages_that_do_not_match()
{
MockLogger.contains_message("installpackage").ShouldBeFalse();
}
[Fact]
public void should_contain_a_summary()
{
MockLogger.contains_message("packages found").ShouldBeTrue();
}
[Fact]
public void should_contain_debugging_messages()
{
MockLogger.contains_message("Searching for package information", LogLevel.Debug).ShouldBeTrue();
MockLogger.contains_message("Running list with the following filter", LogLevel.Debug).ShouldBeTrue();
MockLogger.contains_message("Start of List", LogLevel.Debug).ShouldBeTrue();
MockLogger.contains_message("End of List", LogLevel.Debug).ShouldBeTrue();
}
}
[Concern(typeof(ChocolateyListCommand))]
public class when_searching_all_available_packages : ScenariosBase
{
public override void Context()
{
base.Context();
Configuration.AllVersions = true;
}
public override void Because()
{
MockLogger.reset();
Results = Service.list_run(Configuration).ToList();
}
[Fact]
public void should_list_available_packages_as_many_times_as_they_show_on_the_feed()
{
MockLogger.contains_message_count("upgradepackage").ShouldNotEqual(0);
MockLogger.contains_message_count("upgradepackage").ShouldNotEqual(1);
}
[Fact]
public void should_contain_packages_and_versions_with_a_space_between_them()
{
MockLogger.contains_message("upgradepackage 1.1.0").ShouldBeTrue();
}
[Fact]
public void should_not_contain_packages_and_versions_with_a_pipe_between_them()
{
MockLogger.contains_message("upgradepackage|1.1.0").ShouldBeFalse();
}
[Fact]
public void should_contain_a_summary()
{
MockLogger.contains_message("packages found").ShouldBeTrue();
}
[Fact]
public void should_contain_debugging_messages()
{
MockLogger.contains_message("Searching for package information", LogLevel.Debug).ShouldBeTrue();
MockLogger.contains_message("Running list with the following filter", LogLevel.Debug).ShouldBeTrue();
MockLogger.contains_message("Start of List", LogLevel.Debug).ShouldBeTrue();
MockLogger.contains_message("End of List", LogLevel.Debug).ShouldBeTrue();
}
}
[Concern(typeof(ChocolateyListCommand))]
public class when_searching_packages_with_verbose : ScenariosBase
{
public override void Context()
{
base.Context();
Configuration.Verbose = true;
}
public override void Because()
{
MockLogger.reset();
Results = Service.list_run(Configuration).ToList();
}
[Fact]
public void should_contain_packages_and_versions_with_a_space_between_them()
{
MockLogger.contains_message("upgradepackage 1.1.0").ShouldBeTrue();
}
[Fact]
public void should_contain_description()
{
MockLogger.contains_message("Description: ").ShouldBeTrue();
}
[Fact]
public void should_contain_tags()
{
MockLogger.contains_message("Tags: ").ShouldBeTrue();
}
[Fact]
public void should_contain_download_counts()
{
MockLogger.contains_message("Number of Downloads: ").ShouldBeTrue();
}
[Fact]
public void should_not_contain_packages_and_versions_with_a_pipe_between_them()
{
MockLogger.contains_message("upgradepackage|1.1.0").ShouldBeFalse();
}
[Fact]
public void should_contain_a_summary()
{
MockLogger.contains_message("packages found").ShouldBeTrue();
}
[Fact]
public void should_contain_debugging_messages()
{
MockLogger.contains_message("Searching for package information", LogLevel.Debug).ShouldBeTrue();
MockLogger.contains_message("Running list with the following filter", LogLevel.Debug).ShouldBeTrue();
MockLogger.contains_message("Start of List", LogLevel.Debug).ShouldBeTrue();
MockLogger.contains_message("End of List", LogLevel.Debug).ShouldBeTrue();
}
}
[Concern(typeof(ChocolateyListCommand))]
public class when_listing_local_packages : ScenariosBase
{
public override void Context()
{
base.Context();
Configuration.ListCommand.LocalOnly = true;
Configuration.Sources = ApplicationParameters.PackagesLocation;
}
public override void Because()
{
MockLogger.reset();
Results = Service.list_run(Configuration).ToList();
}
[Fact]
public void should_contain_packages_and_versions_with_a_space_between_them()
{
MockLogger.contains_message("upgradepackage 1.0.0").ShouldBeTrue();
}
[Fact]
public void should_not_contain_packages_and_versions_with_a_pipe_between_them()
{
MockLogger.contains_message("upgradepackage|1.0.0").ShouldBeFalse();
}
[Fact]
public void should_contain_a_summary()
{
MockLogger.contains_message("packages installed").ShouldBeTrue();
}
[Fact]
public void should_contain_debugging_messages()
{
MockLogger.contains_message("Searching for package information", LogLevel.Debug).ShouldBeTrue();
MockLogger.contains_message("Running list with the following filter", LogLevel.Debug).ShouldBeTrue();
MockLogger.contains_message("Start of List", LogLevel.Debug).ShouldBeTrue();
MockLogger.contains_message("End of List", LogLevel.Debug).ShouldBeTrue();
}
}
[Concern(typeof(ChocolateyListCommand))]
public class when_listing_local_packages_limiting_output : ScenariosBase
{
public override void Context()
{
base.Context();
Configuration.ListCommand.LocalOnly = true;
Configuration.Sources = ApplicationParameters.PackagesLocation;
Configuration.RegularOutput = false;
}
public override void Because()
{
MockLogger.reset();
Results = Service.list_run(Configuration).ToList();
}
[Fact]
public void should_contain_packages_and_versions_with_a_pipe_between_them()
{
MockLogger.contains_message("upgradepackage|1.0.0").ShouldBeTrue();
}
[Fact]
public void should_only_have_messages_related_to_package_information()
{
var count = MockLogger.Messages.SelectMany(messageLevel => messageLevel.Value.or_empty_list_if_null()).Count();
count.ShouldEqual(2);
}
[Fact]
public void should_not_contain_packages_and_versions_with_a_space_between_them()
{
MockLogger.contains_message("upgradepackage 1.0.0").ShouldBeFalse();
}
[Fact]
public void should_not_contain_a_summary()
{
MockLogger.contains_message("packages installed").ShouldBeFalse();
}
[Fact]
public void should_not_contain_debugging_messages()
{
MockLogger.contains_message("Searching for package information", LogLevel.Debug).ShouldBeFalse();
MockLogger.contains_message("Running list with the following filter", LogLevel.Debug).ShouldBeFalse();
MockLogger.contains_message("Start of List", LogLevel.Debug).ShouldBeFalse();
MockLogger.contains_message("End of List", LogLevel.Debug).ShouldBeFalse();
}
}
[Concern(typeof(ChocolateyListCommand))]
public class when_listing_packages_with_no_sources_enabled : ScenariosBase
{
public override void Context()
{
base.Context();
Configuration.Sources = null;
}
public override void Because()
{
MockLogger.reset();
Results = Service.list_run(Configuration).ToList();
}
[Fact]
public void should_have_no_sources_enabled_result()
{
MockLogger.contains_message("Unable to search for packages when there are no sources enabled for", LogLevel.Error).ShouldBeTrue();
}
[Fact]
public void should_not_list_any_packages()
{
Results.Count().ShouldEqual(0);
}
}
[Concern(typeof(ChocolateyListCommand))]
public class when_searching_for_an_exact_package : ScenariosBase
{
public override void Context()
{
Configuration = Scenario.list();
Scenario.reset(Configuration);
Scenario.add_packages_to_source_location(Configuration, "exactpackage*" + Constants.PackageExtension);
Service = NUnitSetup.Container.GetInstance<IChocolateyPackageService>();
Configuration.ListCommand.Exact = true;
Configuration.Input = Configuration.PackageNames = "exactpackage";
}
public override void Because()
{
MockLogger.reset();
Results = Service.list_run(Configuration).ToList();
}
[Fact]
public void should_contain_packages_and_versions_with_a_space_between_them()
{
MockLogger.contains_message("exactpackage 1.0.0").ShouldBeTrue();
}
[Fact]
public void should_not_contain_packages_that_do_not_match()
{
MockLogger.contains_message("exactpackage.dontfind").ShouldBeFalse();
}
[Fact]
public void should_contain_a_summary()
{
MockLogger.contains_message("packages found").ShouldBeTrue();
}
[Fact]
public void should_contain_debugging_messages()
{
MockLogger.contains_message("Searching for package information", LogLevel.Debug).ShouldBeTrue();
MockLogger.contains_message("Running list with the following filter", LogLevel.Debug).ShouldBeTrue();
MockLogger.contains_message("Start of List", LogLevel.Debug).ShouldBeTrue();
MockLogger.contains_message("End of List", LogLevel.Debug).ShouldBeTrue();
}
}
}
}
| 38.900709 | 147 | 0.576238 | [
"Apache-2.0"
] | johnypony3/choco | src/chocolatey.tests.integration/scenarios/ListScenarios.cs | 16,458 | C# |
// Copyright © BBT Software AG. All rights reserved.
namespace BBT.StrategyPattern
{
/// <summary>
/// Helper interface to instantiate instances.
/// </summary>
/// <typeparam name="TInterface">The interface type.</typeparam>
/// <typeparam name="TClass">The class type, must inherit from <typeparamref name="TInterface"/>.</typeparam>
public interface IInstanceCreator<TInterface, TClass>
where TInterface : class
where TClass : TInterface, new()
{
/// <summary>
/// Creates an instance of type <typeparamref name="TClass"/>.
/// </summary>
/// <returns>Returns a new instance of <typeparamref name="TClass"/>.</returns>
TInterface Create();
}
}
| 35.095238 | 113 | 0.636364 | [
"MIT"
] | bbtsoftware/BBT.Strategy | src/BBT.StrategyPattern/IInstanceCreator.cs | 740 | C# |
using System;
using System.Runtime.InteropServices;
using BOOL = System.Boolean;
using WORD = System.UInt16;
using DWORD = System.UInt32;
using QWORD = System.UInt64;
using LPVOID = System.IntPtr;
using DWORD_PTR = System.IntPtr;
namespace MonkeyWorks.Unmanaged.Headers
{
sealed class Winbase
{
//https://msdn.microsoft.com/en-us/library/windows/desktop/ms682434(v=vs.85).aspx
[Flags]
public enum CREATION_FLAGS : uint
{
NONE = 0x0,
CREATE_DEFAULT_ERROR_MODE = 0x04000000,
CREATE_NEW_CONSOLE = 0x00000010,
CREATE_NEW_PROCESS_GROUP = 0x00000200,
CREATE_SEPARATE_WOW_VDM = 0x00000800,
CREATE_SUSPENDED = 0x00000004,
CREATE_UNICODE_ENVIRONMENT = 0x00000400,
EXTENDED_STARTUPINFO_PRESENT = 0x00080000
}
[Flags]
public enum INFO_PROCESSOR_ARCHITECTURE : ushort
{
PROCESSOR_ARCHITECTURE_INTEL = 0,
PROCESSOR_ARCHITECTURE_ARM = 5,
PROCESSOR_ARCHITECTURE_IA64 = 6,
PROCESSOR_ARCHITECTURE_AMD64 = 9,
PROCESSOR_ARCHITECTURE_ARM64 = 12,
PROCESSOR_ARCHITECTURE_UNKNOWN = 0xffff
}
[Flags]
public enum OPEN_MODE : uint
{
PIPE_ACCESS_INBOUND = 0x00000001,
PIPE_ACCESS_OUTBOUND = 0x00000002,
PIPE_ACCESS_DUPLEX = 0x00000003,
WRITE_DAC = 0x00040000,
WRITE_OWNER = 0x00080000,
FILE_FLAG_FIRST_PIPE_INSTANCE = 0x00080000,
ACCESS_SYSTEM_SECURITY = 0x01000000,
FILE_FLAG_OVERLAPPED = 0x40000000,
FILE_FLAG_WRITE_THROUGH = 0x80000000
}
[Flags]
public enum PIPE_MODE : uint
{
PIPE_TYPE_BYTE = 0x00000000,
PIPE_TYPE_MESSAGE = 0x00000004,
PIPE_READMODE_BYTE = 0x00000000,
PIPE_READMODE_MESSAGE = 0x00000002,
PIPE_WAIT = 0x00000000,
PIPE_NOWAIT = 0x00000001,
PIPE_ACCEPT_REMOTE_CLIENTS = 0x00000000,
PIPE_REJECT_REMOTE_CLIENTS = 0x00000008
}
[Flags]
public enum LOGON_FLAGS
{
LOGON_WITH_PROFILE = 0x00000001,
LOGON_NETCREDENTIALS_ONLY = 0x00000002
}
[Flags]
public enum LOGON_PROVIDER
{
LOGON32_PROVIDER_DEFAULT = 0,
LOGON32_PROVIDER_WINNT35 = 1,
LOGON32_PROVIDER_WINNT40 = 2,
LOGON32_PROVIDER_WINNT50 = 3
}
[Flags]
public enum LOGON_TYPE
{
LOGON32_LOGON_INTERACTIVE = 2,
LOGON32_LOGON_NETWORK = 3,
LOGON32_LOGON_BATCH = 4,
LOGON32_LOGON_SERVICE = 5,
LOGON32_LOGON_UNLOCK = 7,
LOGON32_LOGON_NETWORK_CLEARTEXT = 8,
LOGON32_LOGON_NEW_CREDENTIALS = 9
}
//https://msdn.microsoft.com/en-us/library/windows/desktop/ms684873(v=vs.85).aspx
[StructLayout(LayoutKind.Sequential)]
public struct _PROCESS_INFORMATION
{
public IntPtr hProcess;
public IntPtr hThread;
public UInt32 dwProcessId;
public UInt32 dwThreadId;
};
[StructLayout(LayoutKind.Sequential)]
public struct _SECURITY_ATTRIBUTES
{
public DWORD nLength;
public LPVOID lpSecurityDescriptor;
public BOOL bInheritHandle;
}
[StructLayout(LayoutKind.Sequential)]
public struct _STARTUPINFO
{
public UInt32 cb;
public string lpReserved;
public string lpDesktop;
public string lpTitle;
public UInt32 dwX;
public UInt32 dwY;
public UInt32 dwXSize;
public UInt32 dwYSize;
public UInt32 dwXCountChars;
public UInt32 dwYCountChars;
public UInt32 dwFillAttribute;
public UInt32 dwFlags;
public UInt16 wShowWindow;
public UInt16 cbReserved2;
public IntPtr lpReserved2;
public IntPtr hStdInput;
public IntPtr hStdOutput;
public IntPtr hStdError;
};
//https://msdn.microsoft.com/en-us/library/windows/desktop/ms686331(v=vs.85).aspx
[StructLayout(LayoutKind.Sequential)]
public struct _STARTUPINFOEX
{
_STARTUPINFO StartupInfo;
// PPROC_THREAD_ATTRIBUTE_LIST lpAttributeList;
};
[StructLayout(LayoutKind.Sequential)]
public struct _SYSTEM_INFO
{
public INFO_PROCESSOR_ARCHITECTURE wProcessorArchitecture;
public WORD wReserved;
public DWORD dwPageSize;
public LPVOID lpMinimumApplicationAddress;
public LPVOID lpMaximumApplicationAddress;
public DWORD_PTR dwActiveProcessorMask;
public DWORD dwNumberOfProcessors;
public DWORD dwProcessorType;
public DWORD dwAllocationGranularity;
public WORD wProcessorLevel;
public WORD wProcessorRevision;
}
}
} | 31.975309 | 89 | 0.602703 | [
"BSD-3-Clause"
] | 0xbadjuju/MonkeyWorks | MonkeyWorks/Unmanaged/Headers/Winbase.cs | 5,182 | C# |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace TQVaultAE.Presentation {
using System;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
public class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
public static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("TQVaultAE.Presentation.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
public static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// Looks up a localized string similar to TQVault by bman654 (wickedsoul_@yahoo.com)
///
///Contributors:
///
///- EPinter: bug fixes, UI rework, new big vault, improvements
///- NorthFury: bug fixes, search features, improvements
///- Malgardian: Anniversary Edition port
///- Help on Item Stats by SadYc (sadyc1@gmail.com)
///
///
///- Additional features by
///VillageIdiot (villij-idjit@sbcglobal.net)
///
///- New User Interface by AvunaOs
///- German translation by FOE.
///- French translation by Jean and Vifarc.
///- Polish translation by Cygi.
///- Russian translation by Xelat [rest of string was truncated]";.
/// </summary>
public static string AboutDescription {
get {
return ResourceManager.GetString("AboutDescription", resourceCulture);
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap AboutGraphic {
get {
object obj = ResourceManager.GetObject("AboutGraphic", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized string similar to About {0}.
/// </summary>
public static string AboutText {
get {
return ResourceManager.GetString("AboutText", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Version {0}.
/// </summary>
public static string AboutVersion {
get {
return ResourceManager.GetString("AboutVersion", resourceCulture);
}
}
/// <summary>
/// Looks up a localized resource of type System.Byte[].
/// </summary>
public static byte[] AlbertusMT {
get {
object obj = ResourceManager.GetObject("AlbertusMT", resourceCulture);
return ((byte[])(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Byte[].
/// </summary>
public static byte[] AlbertusMTLight {
get {
object obj = ResourceManager.GetObject("AlbertusMTLight", resourceCulture);
return ((byte[])(obj));
}
}
/// <summary>
/// Looks up a localized string similar to Extract.
/// </summary>
public static string ARZExtractBtnExtract {
get {
return ResourceManager.GetString("ARZExtractBtnExtract", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to {0} does not exist. Would you like to create it now?.
/// </summary>
public static string ARZExtractCreateFolder {
get {
return ResourceManager.GetString("ARZExtractCreateFolder", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Create folder?.
/// </summary>
public static string ARZExtractCreateFolder2 {
get {
return ResourceManager.GetString("ARZExtractCreateFolder2", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to {0} does not exist for IT database. Would you like to create it now?.
/// </summary>
public static string ARZExtractCreateFolderIT {
get {
return ResourceManager.GetString("ARZExtractCreateFolderIT", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Select the destination folder for the extracted database records.
/// </summary>
public static string ARZExtractDestination {
get {
return ResourceManager.GetString("ARZExtractDestination", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to You must specify a folder, not a file!.
/// </summary>
public static string ARZExtractFileDest {
get {
return ResourceManager.GetString("ARZExtractFileDest", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Currently there is no way to extract all of the game database records at once. Also there currently exists a bug in the Toolset that destroys array values when you extract records one by one. Using this tool, you can now extract all records at once and all the records will be extracted correctly..
/// </summary>
public static string ARZExtractLabel1 {
get {
return ResourceManager.GetString("ARZExtractLabel1", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to After you have extracted the records, just copy the ones you want to use in your mod over to your mod folder..
/// </summary>
public static string ARZExtractLabel2 {
get {
return ResourceManager.GetString("ARZExtractLabel2", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Choose a destination folder:.
/// </summary>
public static string ARZExtractLabel3 {
get {
return ResourceManager.GetString("ARZExtractLabel3", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Choose a destination folder for IT Database Files:.
/// </summary>
public static string ARZExtractLabel4 {
get {
return ResourceManager.GetString("ARZExtractLabel4", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to If not populated the destination folders for the TQ database and the IT database will default to the same folder. The IT files will overwrite the TQ files when there are conflicts though you can select different folders to avoid overwriting files..
/// </summary>
public static string ARZExtractLabel5 {
get {
return ResourceManager.GetString("ARZExtractLabel5", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Extract database.arz.
/// </summary>
public static string ARZExtractText {
get {
return ResourceManager.GetString("ARZExtractText", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to You must enter a valid destination folder..
/// </summary>
public static string ARZExtractValidDest {
get {
return ResourceManager.GetString("ARZExtractValidDest", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Extraction cancelled..
/// </summary>
public static string ARZProgressCancelledText {
get {
return ResourceManager.GetString("ARZProgressCancelledText", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Extraction complete..
/// </summary>
public static string ARZProgressCompleteText {
get {
return ResourceManager.GetString("ARZProgressCompleteText", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Extraction Failed..
/// </summary>
public static string ARZProgressFailedText {
get {
return ResourceManager.GetString("ARZProgressFailedText", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Extracting {0} ....
/// </summary>
public static string ARZProgressLabel {
get {
return ResourceManager.GetString("ARZProgressLabel", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Extracting.
/// </summary>
public static string ARZProgressLabel1 {
get {
return ResourceManager.GetString("ARZProgressLabel1", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Extracting database.arz....
/// </summary>
public static string ARZProgressText {
get {
return ResourceManager.GetString("ARZProgressText", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Attribute Points.
/// </summary>
public static string AttributesPoints {
get {
return ResourceManager.GetString("AttributesPoints", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to English.
/// </summary>
public static string AUEnglishName {
get {
return ResourceManager.GetString("AUEnglishName", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to 2.
/// </summary>
public static string AUFileVersion {
get {
return ResourceManager.GetString("AUFileVersion", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to 2.3.1.0.
/// </summary>
public static string AUMinTQVaultVersion {
get {
return ResourceManager.GetString("AUMinTQVaultVersion", resourceCulture);
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap autosortdown01 {
get {
object obj = ResourceManager.GetObject("autosortdown01", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap autosortover01 {
get {
object obj = ResourceManager.GetObject("autosortover01", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap autosortup01 {
get {
object obj = ResourceManager.GetObject("autosortup01", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized string similar to Base Dex.
/// </summary>
public static string BaseDexterity {
get {
return ResourceManager.GetString("BaseDexterity", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Base Health.
/// </summary>
public static string BaseHealth {
get {
return ResourceManager.GetString("BaseHealth", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Base Int.
/// </summary>
public static string BaseIntelligence {
get {
return ResourceManager.GetString("BaseIntelligence", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Base Mana.
/// </summary>
public static string BaseMana {
get {
return ResourceManager.GetString("BaseMana", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Base Str.
/// </summary>
public static string BaseStrength {
get {
return ResourceManager.GetString("BaseStrength", resourceCulture);
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap BorderBottom {
get {
object obj = ResourceManager.GetObject("BorderBottom", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap BorderBottomLeftCorner {
get {
object obj = ResourceManager.GetObject("BorderBottomLeftCorner", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap BorderBottomRightCorner {
get {
object obj = ResourceManager.GetObject("BorderBottomRightCorner", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap BorderSide {
get {
object obj = ResourceManager.GetObject("BorderSide", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap BorderTop {
get {
object obj = ResourceManager.GetObject("BorderTop", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap ButtonCloseDown {
get {
object obj = ResourceManager.GetObject("ButtonCloseDown", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap ButtonCloseOver {
get {
object obj = ResourceManager.GetObject("ButtonCloseOver", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap ButtonCloseUp {
get {
object obj = ResourceManager.GetObject("ButtonCloseUp", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap ButtonMaximizeDown {
get {
object obj = ResourceManager.GetObject("ButtonMaximizeDown", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap ButtonMaximizeOver {
get {
object obj = ResourceManager.GetObject("ButtonMaximizeOver", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap ButtonMaximizeUp {
get {
object obj = ResourceManager.GetObject("ButtonMaximizeUp", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap ButtonMinimizeDown {
get {
object obj = ResourceManager.GetObject("ButtonMinimizeDown", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap ButtonMinimizeOver {
get {
object obj = ResourceManager.GetObject("ButtonMinimizeOver", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap ButtonMinimizeUp {
get {
object obj = ResourceManager.GetObject("ButtonMinimizeUp", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap caravan_bg {
get {
object obj = ResourceManager.GetObject("caravan_bg", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized string similar to Attribute Points.
/// </summary>
public static string CEAttributePoints {
get {
return ResourceManager.GetString("CEAttributePoints", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Base Attributes.
/// </summary>
public static string CEAttributes {
get {
return ResourceManager.GetString("CEAttributes", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Dexterity.
/// </summary>
public static string CEDexterity {
get {
return ResourceManager.GetString("CEDexterity", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Difficulty.
/// </summary>
public static string CEDifficulty {
get {
return ResourceManager.GetString("CEDifficulty", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Enable Leveling.
/// </summary>
public static string CEEnableLeveling {
get {
return ResourceManager.GetString("CEEnableLeveling", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Health.
/// </summary>
public static string CEHealth {
get {
return ResourceManager.GetString("CEHealth", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Intelligence.
/// </summary>
public static string CEIntelligence {
get {
return ResourceManager.GetString("CEIntelligence", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Level.
/// </summary>
public static string CELevel {
get {
return ResourceManager.GetString("CELevel", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Leveling.
/// </summary>
public static string CELeveling {
get {
return ResourceManager.GetString("CELeveling", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Mana.
/// </summary>
public static string CEMana {
get {
return ResourceManager.GetString("CEMana", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Skill Points.
/// </summary>
public static string CESkillPoints {
get {
return ResourceManager.GetString("CESkillPoints", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Strength.
/// </summary>
public static string CEStrength {
get {
return ResourceManager.GetString("CEStrength", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to XP.
/// </summary>
public static string CEXp {
get {
return ResourceManager.GetString("CEXp", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Edit.
/// </summary>
public static string CharacterEditBtn {
get {
return ResourceManager.GetString("CharacterEditBtn", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Class.
/// </summary>
public static string Class {
get {
return ResourceManager.GetString("Class", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Error parsing command-line arguments: {0}
///
///Usage: TQVault [player name] [/mod:<mod name>].
/// </summary>
public static string CmdlineUsage {
get {
return ResourceManager.GetString("CmdlineUsage", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Critical Hits.
/// </summary>
public static string CriticalHitsInflicted {
get {
return ResourceManager.GetString("CriticalHitsInflicted", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Critical Hits Recv.
/// </summary>
public static string CriticalHitsReceived {
get {
return ResourceManager.GetString("CriticalHitsReceived", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Level.
/// </summary>
public static string CurrentLevel {
get {
return ResourceManager.GetString("CurrentLevel", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to XP.
/// </summary>
public static string CurrentXP {
get {
return ResourceManager.GetString("CurrentXP", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Default Vault Path.
/// </summary>
public static string DataDefaultPath {
get {
return ResourceManager.GetString("DataDefaultPath", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to The Vault Path was not set.
///
///Using the default setting.
///Please verify the Vault Path with the configuration dialog..
/// </summary>
public static string DataDefaultPathMsg {
get {
return ResourceManager.GetString("DataDefaultPathMsg", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Please Update Vault Path.
/// </summary>
public static string DataLink {
get {
return ResourceManager.GetString("DataLink", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Please update the vault path in the
///configuration to reflect the link..
/// </summary>
public static string DataLinkMsg {
get {
return ResourceManager.GetString("DataLinkMsg", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Difficulty.
/// </summary>
public static string DifficultyUnlocked {
get {
return ResourceManager.GetString("DifficultyUnlocked", resourceCulture);
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap equipment_bg_and_char {
get {
object obj = ResourceManager.GetObject("equipment_bg_and_char", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap Equipment_bg_new {
get {
object obj = ResourceManager.GetObject("Equipment_bg_new", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap EquipmentPanel {
get {
object obj = ResourceManager.GetObject("EquipmentPanel", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized string similar to XP From Kills.
/// </summary>
public static string ExperienceFromKills {
get {
return ResourceManager.GetString("ExperienceFromKills", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to
///
///This may be caused by a bad language or game path setting.
///Would you like to restart TQVault?.
/// </summary>
public static string Form1BadLanguage {
get {
return ResourceManager.GetString("Form1BadLanguage", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Enter The Vault.
/// </summary>
public static string Form1bNext {
get {
return ResourceManager.GetString("Form1bNext", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Error Loading Resources.
/// </summary>
public static string Form1ErrorLoadingResources {
get {
return ResourceManager.GetString("Form1ErrorLoadingResources", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to A magical place where you can store your artifacts of power that you will need to save the world from the Titans..
/// </summary>
public static string Form1Label3 {
get {
return ResourceManager.GetString("Form1Label3", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Loading Game Resources... Please Wait.
/// </summary>
public static string Form1LblPleaseWait {
get {
return ResourceManager.GetString("Form1LblPleaseWait", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Titan Quest Item Vault.
/// </summary>
public static string Form1Text {
get {
return ResourceManager.GetString("Form1Text", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to About.
/// </summary>
public static string GlobalAbout {
get {
return ResourceManager.GetString("GlobalAbout", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Base Attribute.
/// </summary>
public static string GlobalBaseAttribute {
get {
return ResourceManager.GetString("GlobalBaseAttribute", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Browse....
/// </summary>
public static string GlobalBrowse {
get {
return ResourceManager.GetString("GlobalBrowse", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Cancel.
/// </summary>
public static string GlobalCancel {
get {
return ResourceManager.GetString("GlobalCancel", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Close.
/// </summary>
public static string GlobalClose {
get {
return ResourceManager.GetString("GlobalClose", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Collapse All.
/// </summary>
public static string GlobalCollapseAll {
get {
return ResourceManager.GetString("GlobalCollapseAll", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Are you sure you want to delete "{0}" ?.
/// </summary>
public static string GlobalDeleteConfirm {
get {
return ResourceManager.GetString("GlobalDeleteConfirm", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Error.
/// </summary>
public static string GlobalError {
get {
return ResourceManager.GetString("GlobalError", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Exit.
/// </summary>
public static string GlobalExit {
get {
return ResourceManager.GetString("GlobalExit", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Expand All.
/// </summary>
public static string GlobalExpandAll {
get {
return ResourceManager.GetString("GlobalExpandAll", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Input warning.
/// </summary>
public static string GlobalInputWarning {
get {
return ResourceManager.GetString("GlobalInputWarning", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Maximize.
/// </summary>
public static string GlobalMaximize {
get {
return ResourceManager.GetString("GlobalMaximize", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Bag #{0}.
/// </summary>
public static string GlobalMenuBag {
get {
return ResourceManager.GetString("GlobalMenuBag", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to #.
/// </summary>
public static string GlobalMenuBagDelimiter {
get {
return ResourceManager.GetString("GlobalMenuBagDelimiter", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Minimize.
/// </summary>
public static string GlobalMinimize {
get {
return ResourceManager.GetString("GlobalMinimize", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Move.
/// </summary>
public static string GlobalMove {
get {
return ResourceManager.GetString("GlobalMove", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Scale back to normal size.
/// </summary>
public static string GlobalNormalize {
get {
return ResourceManager.GetString("GlobalNormalize", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to OK.
/// </summary>
public static string GlobalOK {
get {
return ResourceManager.GetString("GlobalOK", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Prefix.
/// </summary>
public static string GlobalPrefix {
get {
return ResourceManager.GetString("GlobalPrefix", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Prefix Name.
/// </summary>
public static string GlobalPrefixName {
get {
return ResourceManager.GetString("GlobalPrefixName", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Rarity.
/// </summary>
public static string GlobalRarity {
get {
return ResourceManager.GetString("GlobalRarity", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Relic Vault.
/// </summary>
public static string GlobalRelicVaultStash {
get {
return ResourceManager.GetString("GlobalRelicVaultStash", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Restore.
/// </summary>
public static string GlobalRestore {
get {
return ResourceManager.GetString("GlobalRestore", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Save.
/// </summary>
public static string GlobalSave {
get {
return ResourceManager.GetString("GlobalSave", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Size.
/// </summary>
public static string GlobalSize {
get {
return ResourceManager.GetString("GlobalSize", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Style.
/// </summary>
public static string GlobalStyle {
get {
return ResourceManager.GetString("GlobalStyle", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Suffix.
/// </summary>
public static string GlobalSuffix {
get {
return ResourceManager.GetString("GlobalSuffix", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Suffix Name.
/// </summary>
public static string GlobalSuffixName {
get {
return ResourceManager.GetString("GlobalSuffixName", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Transfer Stash.
/// </summary>
public static string GlobalTransferStash {
get {
return ResourceManager.GetString("GlobalTransferStash", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Trash.
/// </summary>
public static string GlobalTrash {
get {
return ResourceManager.GetString("GlobalTrash", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Type.
/// </summary>
public static string GlobalType {
get {
return ResourceManager.GetString("GlobalType", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Vaults.
/// </summary>
public static string GlobalVaults {
get {
return ResourceManager.GetString("GlobalVaults", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Greatest Dmg.
/// </summary>
public static string GreatestDamageInflicted {
get {
return ResourceManager.GetString("GreatestDamageInflicted", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Greatest Mob.
/// </summary>
public static string GreatestMonster {
get {
return ResourceManager.GetString("GreatestMonster", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Health Pots Used.
/// </summary>
public static string HealthPotionsUsed {
get {
return ResourceManager.GetString("HealthPotionsUsed", resourceCulture);
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap inventorybagdown01 {
get {
object obj = ResourceManager.GetObject("inventorybagdown01", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap inventorybagover01 {
get {
object obj = ResourceManager.GetObject("inventorybagover01", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap inventorybagup01 {
get {
object obj = ResourceManager.GetObject("inventorybagup01", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap ItemAccent {
get {
object obj = ResourceManager.GetObject("ItemAccent", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized string similar to Atlantis Item.
/// </summary>
public static string ItemAtlantis {
get {
return ResourceManager.GetString("ItemAtlantis", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Eternal Embers Item.
/// </summary>
public static string ItemEmbers {
get {
return ResourceManager.GetString("ItemEmbers", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Immortal Throne Item.
/// </summary>
public static string ItemIT {
get {
return ResourceManager.GetString("ItemIT", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Filter Extra Info.
/// </summary>
public static string ItemPropertiesCheckBoxLabelFilterExtraInfo {
get {
return ResourceManager.GetString("ItemPropertiesCheckBoxLabelFilterExtraInfo", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Base Item Properties.
/// </summary>
public static string ItemPropertiesLabelBaseItemProperties {
get {
return ResourceManager.GetString("ItemPropertiesLabelBaseItemProperties", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Prefix Properties.
/// </summary>
public static string ItemPropertiesLabelPrefixProperties {
get {
return ResourceManager.GetString("ItemPropertiesLabelPrefixProperties", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Suffix Properties.
/// </summary>
public static string ItemPropertiesLabelSuffixProperties {
get {
return ResourceManager.GetString("ItemPropertiesLabelSuffixProperties", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Item Properties.
/// </summary>
public static string ItemPropertiesText {
get {
return ResourceManager.GetString("ItemPropertiesText", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to (Quest Item).
/// </summary>
public static string ItemQuest {
get {
return ResourceManager.GetString("ItemQuest", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Ragnarök Item.
/// </summary>
public static string ItemRagnarok {
get {
return ResourceManager.GetString("ItemRagnarok", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to (Completion Bonus: {0}).
/// </summary>
public static string ItemRelicBonus {
get {
return ResourceManager.GetString("ItemRelicBonus", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to (Completed).
/// </summary>
public static string ItemRelicCompleted {
get {
return ResourceManager.GetString("ItemRelicCompleted", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to itemSeed: {0} (0x{0:X8}) ({1:p3}).
/// </summary>
public static string ItemSeed {
get {
return ResourceManager.GetString("ItemSeed", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to with.
/// </summary>
public static string ItemWith {
get {
return ResourceManager.GetString("ItemWith", resourceCulture);
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap MainButtonDown {
get {
object obj = ResourceManager.GetObject("MainButtonDown", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap MainButtonOver {
get {
object obj = ResourceManager.GetObject("MainButtonOver", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap MainButtonUp {
get {
object obj = ResourceManager.GetObject("MainButtonUp", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap MainForm_Background {
get {
object obj = ResourceManager.GetObject("MainForm_Background", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap MainForm_NewBackground {
get {
object obj = ResourceManager.GetObject("MainForm_NewBackground", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized string similar to 2nd Vault:.
/// </summary>
public static string MainForm2ndVault {
get {
return ResourceManager.GetString("MainForm2ndVault", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Configure.
/// </summary>
public static string MainFormBtnConfigure {
get {
return ResourceManager.GetString("MainFormBtnConfigure", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Extract database.arz ....
/// </summary>
public static string MainFormBtnExtract {
get {
return ResourceManager.GetString("MainFormBtnExtract", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Show Vault.
/// </summary>
public static string MainFormBtnPanelSelect {
get {
return ResourceManager.GetString("MainFormBtnPanelSelect", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Show Player.
/// </summary>
public static string MainFormBtnShowPlayer {
get {
return ResourceManager.GetString("MainFormBtnShowPlayer", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to {0} Custom Map.
/// </summary>
public static string MainFormCustomMapLabel {
get {
return ResourceManager.GetString("MainFormCustomMapLabel", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Error extracting database.
/// </summary>
public static string MainFormDatabaseError {
get {
return ResourceManager.GetString("MainFormDatabaseError", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to There was an error attempting to load all files in the last run.
///Would you like to disable loading all files?.
/// </summary>
public static string MainFormDisableLoadAllFiles {
get {
return ResourceManager.GetString("MainFormDisableLoadAllFiles", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Disable loading all files?.
/// </summary>
public static string MainFormDisableLoadAllFilesCaption {
get {
return ResourceManager.GetString("MainFormDisableLoadAllFilesCaption", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to You are currently holding an item.
///Please place the item down somewhere before quitting..
/// </summary>
public static string MainFormHoldingItem {
get {
return ResourceManager.GetString("MainFormHoldingItem", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Please set item down..
/// </summary>
public static string MainFormHoldingItem2 {
get {
return ResourceManager.GetString("MainFormHoldingItem2", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Character:.
/// </summary>
public static string MainFormLabel1 {
get {
return ResourceManager.GetString("MainFormLabel1", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Vault:.
/// </summary>
public static string MainFormLabel2 {
get {
return ResourceManager.GetString("MainFormLabel2", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Game Language Changed.
/// </summary>
public static string MainFormLanguageChanged {
get {
return ResourceManager.GetString("MainFormLanguageChanged", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to The Game Language Setting has been changed.
///
///You will need to restart TQVault for it take effect.
///Would you like to restart TQVault now?.
/// </summary>
public static string MainFormLanguageChangedMsg {
get {
return ResourceManager.GetString("MainFormLanguageChangedMsg", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Maintain Vault Files....
/// </summary>
public static string MainFormMaintainVault {
get {
return ResourceManager.GetString("MainFormMaintainVault", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Custom Maps Setting Changed.
/// </summary>
public static string MainFormMapsChanged {
get {
return ResourceManager.GetString("MainFormMapsChanged", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to The Custom Maps setting has been changed.
///
///You will need to restart TQVault for it take effect.
///Would you like to restart TQVault now?.
/// </summary>
public static string MainFormMapsChangedMsg {
get {
return ResourceManager.GetString("MainFormMapsChangedMsg", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to No TQ characters detected.
/// </summary>
public static string MainFormNoCharacters {
get {
return ResourceManager.GetString("MainFormNoCharacters", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to No Custom Map characters detected.
/// </summary>
public static string MainFormNoCustomChars {
get {
return ResourceManager.GetString("MainFormNoCustomChars", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to No items found of type '{0}'
///and quality '{1}'..
/// </summary>
public static string MainFormNoItemQualityFound {
get {
return ResourceManager.GetString("MainFormNoItemQualityFound", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to No items found with '{0}'..
/// </summary>
public static string MainFormNoItemsFound {
get {
return ResourceManager.GetString("MainFormNoItemsFound", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to No Items Found.
/// </summary>
public static string MainFormNoItemsFound2 {
get {
return ResourceManager.GetString("MainFormNoItemsFound2", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to No items found of type '{0}'..
/// </summary>
public static string MainFormNoItemTypesFound {
get {
return ResourceManager.GetString("MainFormNoItemTypesFound", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Game Paths Changed.
/// </summary>
public static string MainFormPathsChanged {
get {
return ResourceManager.GetString("MainFormPathsChanged", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to The Game Paths have been changed.
///
///You will need to restart TQVault for it take effect.
///Would you like to restart TQVault now?.
/// </summary>
public static string MainFormPathsChangedMsg {
get {
return ResourceManager.GetString("MainFormPathsChangedMsg", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Error reading player file.
/// </summary>
public static string MainFormPlayerReadError {
get {
return ResourceManager.GetString("MainFormPlayerReadError", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Are you sure you wish to quit?.
/// </summary>
public static string MainFormQuit {
get {
return ResourceManager.GetString("MainFormQuit", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Error reading {0}
///Are you sure it is a valid file?
///
///{1}.
/// </summary>
public static string MainFormReadError {
get {
return ResourceManager.GetString("MainFormReadError", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Error saving data for '{0}'.
/// </summary>
public static string MainFormSaveError {
get {
return ResourceManager.GetString("MainFormSaveError", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Search.
/// </summary>
public static string MainFormSearchButtonText {
get {
return ResourceManager.GetString("MainFormSearchButtonText", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Select a character.
/// </summary>
public static string MainFormSelectCharacter {
get {
return ResourceManager.GetString("MainFormSelectCharacter", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Select a vault.
/// </summary>
public static string MainFormSelectVault {
get {
return ResourceManager.GetString("MainFormSelectVault", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Game Settings Changed.
/// </summary>
public static string MainFormSettingsChanged {
get {
return ResourceManager.GetString("MainFormSettingsChanged", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to The Game Settings have been changed.
///
///You will need to restart TQVault for it take effect.
///Would you like to restart TQVault now?.
/// </summary>
public static string MainFormSettingsChangedMsg {
get {
return ResourceManager.GetString("MainFormSettingsChangedMsg", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Would you like to start TQVaultMon?.
/// </summary>
public static string MainFormStartVaultMon {
get {
return ResourceManager.GetString("MainFormStartVaultMon", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to You have just modified the inventory of some of your characters.
///Titan Quest will detect this and think that your character is corrupt
///and will not let you load your character.
///
///TQVaultMon is a program that, when running, will make Titan Quest
///think that your character is okay and will let you load it successfully.
///Once you have successfully loaded your character you will not need to
///use TQVaultMon again unless you make further edits.
///
///It is suggested that you start TQVaultMon now and then run Tita [rest of string was truncated]";.
/// </summary>
public static string MainFormStartVaultMonMsg {
get {
return ResourceManager.GetString("MainFormStartVaultMonMsg", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Error reading stash file.
/// </summary>
public static string MainFormStashReadError {
get {
return ResourceManager.GetString("MainFormStashReadError", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to There are currently {0} items in the trash.
///If you quit these items will be LOST FOREVER.
///
///Are you sure you wish to throw away these items?.
/// </summary>
public static string MainFormTrashItems {
get {
return ResourceManager.GetString("MainFormTrashItems", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Unable to start TQVaultMon.
/// </summary>
public static string MainFormUnableToStartVaultMon {
get {
return ResourceManager.GetString("MainFormUnableToStartVaultMon", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Error trying to start TQVaultMon.
/// </summary>
public static string MainFormVaultMonError {
get {
return ResourceManager.GetString("MainFormVaultMonError", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to I was unable to see if TQVaultMon was running.
///Most likely TQVaultMon will not work either.
///Because you have modified some of your characters, TQ will think your characters are corrupt.
///In order to successfully load the game and play, you will need to download TQ Defiler
///and use its 'Patch' or 'Fix Me' options to let the game validate your character.
///If you do not mind, please contact me and let me know about this problem
///because I may have a solution to the error that will save you some hassles.
///
///E [rest of string was truncated]";.
/// </summary>
public static string MainFormVaultMonMsg {
get {
return ResourceManager.GetString("MainFormVaultMonMsg", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to You used invalid characters..
/// </summary>
public static string MaintenanceBadChars {
get {
return ResourceManager.GetString("MaintenanceBadChars", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to You must enter a name for the new vault.
/// </summary>
public static string MaintenanceBadName {
get {
return ResourceManager.GetString("MaintenanceBadName", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Please select the source to copy from the source drop down list
///and then type the destination name in the target box below..
/// </summary>
public static string MaintenanceCopy {
get {
return ResourceManager.GetString("MaintenanceCopy", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Please select the vault to delete from the source drop down list..
/// </summary>
public static string MaintenanceDelete {
get {
return ResourceManager.GetString("MaintenanceDelete", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Duplicate Vault Name.
/// </summary>
public static string MaintenanceDuplicate {
get {
return ResourceManager.GetString("MaintenanceDuplicate", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to A vault named {0} already exists..
/// </summary>
public static string MaintenanceExists {
get {
return ResourceManager.GetString("MaintenanceExists", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Select Function.
/// </summary>
public static string MaintenanceGroup {
get {
return ResourceManager.GetString("MaintenanceGroup", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Instructions.
/// </summary>
public static string MaintenanceInstructions {
get {
return ResourceManager.GetString("MaintenanceInstructions", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Invalid Vault Name.
/// </summary>
public static string MaintenanceInvalidName {
get {
return ResourceManager.GetString("MaintenanceInvalidName", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Invalid Source Vault Name.
/// </summary>
public static string MaintenanceInvalidSourceName {
get {
return ResourceManager.GetString("MaintenanceInvalidSourceName", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Please type a name for your new vault in the target box below.
///
///You may not use the following characters:
///.
/// </summary>
public static string MaintenanceNew {
get {
return ResourceManager.GetString("MaintenanceNew", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to New Vault.
/// </summary>
public static string MaintenanceNewVault {
get {
return ResourceManager.GetString("MaintenanceNewVault", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to You must enter a new name for your copied vault.
/// </summary>
public static string MaintenanceNoCopyTarget {
get {
return ResourceManager.GetString("MaintenanceNoCopyTarget", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Copy a Vault.
/// </summary>
public static string MaintenanceRbCopy {
get {
return ResourceManager.GetString("MaintenanceRbCopy", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Delete a Vault.
/// </summary>
public static string MaintenanceRbDelete {
get {
return ResourceManager.GetString("MaintenanceRbDelete", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Create a New Vault.
/// </summary>
public static string MaintenanceRbNew {
get {
return ResourceManager.GetString("MaintenanceRbNew", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Rename a Vault.
/// </summary>
public static string MaintenanceRbRename {
get {
return ResourceManager.GetString("MaintenanceRbRename", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Please select the vault to rename from the source drop down list
///and then type the new name in the target box below..
/// </summary>
public static string MaintenanceRename {
get {
return ResourceManager.GetString("MaintenanceRename", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Source.
/// </summary>
public static string MaintenanceSource {
get {
return ResourceManager.GetString("MaintenanceSource", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Source Vault does not exist..
/// </summary>
public static string MaintenanceSourceNoExist {
get {
return ResourceManager.GetString("MaintenanceSourceNoExist", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Target.
/// </summary>
public static string MaintenanceTarget {
get {
return ResourceManager.GetString("MaintenanceTarget", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Vault Maintenance.
/// </summary>
public static string MaintenanceText {
get {
return ResourceManager.GetString("MaintenanceText", resourceCulture);
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap Majestic_Chest {
get {
object obj = ResourceManager.GetObject("Majestic_Chest", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap Majestic_Chest_small {
get {
object obj = ResourceManager.GetObject("Majestic_Chest_small", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized string similar to Mana Pots Used.
/// </summary>
public static string ManaPotionsUsed {
get {
return ResourceManager.GetString("ManaPotionsUsed", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Masteries.
/// </summary>
public static string Masteries {
get {
return ResourceManager.GetString("Masteries", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief07.
/// </summary>
public static string MasteriestagCClass01 {
get {
return ResourceManager.GetString("MasteriestagCClass01", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief08.
/// </summary>
public static string MasteriestagCClass02 {
get {
return ResourceManager.GetString("MasteriestagCClass02", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief05.
/// </summary>
public static string MasteriestagCClass03 {
get {
return ResourceManager.GetString("MasteriestagCClass03", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief06.
/// </summary>
public static string MasteriestagCClass04 {
get {
return ResourceManager.GetString("MasteriestagCClass04", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief04.
/// </summary>
public static string MasteriestagCClass05 {
get {
return ResourceManager.GetString("MasteriestagCClass05", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief03.
/// </summary>
public static string MasteriestagCClass06 {
get {
return ResourceManager.GetString("MasteriestagCClass06", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief02.
/// </summary>
public static string MasteriestagCClass07 {
get {
return ResourceManager.GetString("MasteriestagCClass07", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief01.
/// </summary>
public static string MasteriestagCClass08 {
get {
return ResourceManager.GetString("MasteriestagCClass08", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief07-tagMasteryBrief01.
/// </summary>
public static string MasteriestagCClass09 {
get {
return ResourceManager.GetString("MasteriestagCClass09", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief08-tagMasteryBrief01.
/// </summary>
public static string MasteriestagCClass10 {
get {
return ResourceManager.GetString("MasteriestagCClass10", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief05-tagMasteryBrief01.
/// </summary>
public static string MasteriestagCClass11 {
get {
return ResourceManager.GetString("MasteriestagCClass11", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief06-tagMasteryBrief01.
/// </summary>
public static string MasteriestagCClass12 {
get {
return ResourceManager.GetString("MasteriestagCClass12", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief04-tagMasteryBrief01.
/// </summary>
public static string MasteriestagCClass13 {
get {
return ResourceManager.GetString("MasteriestagCClass13", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief03-tagMasteryBrief01.
/// </summary>
public static string MasteriestagCClass14 {
get {
return ResourceManager.GetString("MasteriestagCClass14", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief02-tagMasteryBrief01.
/// </summary>
public static string MasteriestagCClass15 {
get {
return ResourceManager.GetString("MasteriestagCClass15", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief07-tagMasteryBrief02.
/// </summary>
public static string MasteriestagCClass16 {
get {
return ResourceManager.GetString("MasteriestagCClass16", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief08-tagMasteryBrief02.
/// </summary>
public static string MasteriestagCClass17 {
get {
return ResourceManager.GetString("MasteriestagCClass17", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief05-tagMasteryBrief02.
/// </summary>
public static string MasteriestagCClass18 {
get {
return ResourceManager.GetString("MasteriestagCClass18", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief06-tagMasteryBrief02.
/// </summary>
public static string MasteriestagCClass19 {
get {
return ResourceManager.GetString("MasteriestagCClass19", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief04-tagMasteryBrief02.
/// </summary>
public static string MasteriestagCClass20 {
get {
return ResourceManager.GetString("MasteriestagCClass20", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief03-tagMasteryBrief02.
/// </summary>
public static string MasteriestagCClass21 {
get {
return ResourceManager.GetString("MasteriestagCClass21", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief07-tagMasteryBrief03.
/// </summary>
public static string MasteriestagCClass22 {
get {
return ResourceManager.GetString("MasteriestagCClass22", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief08-tagMasteryBrief03.
/// </summary>
public static string MasteriestagCClass23 {
get {
return ResourceManager.GetString("MasteriestagCClass23", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief05-tagMasteryBrief03.
/// </summary>
public static string MasteriestagCClass24 {
get {
return ResourceManager.GetString("MasteriestagCClass24", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief06-tagMasteryBrief03.
/// </summary>
public static string MasteriestagCClass25 {
get {
return ResourceManager.GetString("MasteriestagCClass25", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief04-tagMasteryBrief03.
/// </summary>
public static string MasteriestagCClass26 {
get {
return ResourceManager.GetString("MasteriestagCClass26", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief07-tagMasteryBrief04.
/// </summary>
public static string MasteriestagCClass27 {
get {
return ResourceManager.GetString("MasteriestagCClass27", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief08-tagMasteryBrief04.
/// </summary>
public static string MasteriestagCClass28 {
get {
return ResourceManager.GetString("MasteriestagCClass28", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief05-tagMasteryBrief04.
/// </summary>
public static string MasteriestagCClass29 {
get {
return ResourceManager.GetString("MasteriestagCClass29", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief06-tagMasteryBrief04.
/// </summary>
public static string MasteriestagCClass30 {
get {
return ResourceManager.GetString("MasteriestagCClass30", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief07-tagMasteryBrief06.
/// </summary>
public static string MasteriestagCClass31 {
get {
return ResourceManager.GetString("MasteriestagCClass31", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief08-tagMasteryBrief06.
/// </summary>
public static string MasteriestagCClass32 {
get {
return ResourceManager.GetString("MasteriestagCClass32", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief05-tagMasteryBrief06.
/// </summary>
public static string MasteriestagCClass33 {
get {
return ResourceManager.GetString("MasteriestagCClass33", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief07-tagMasteryBrief05.
/// </summary>
public static string MasteriestagCClass34 {
get {
return ResourceManager.GetString("MasteriestagCClass34", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief08-tagMasteryBrief05.
/// </summary>
public static string MasteriestagCClass35 {
get {
return ResourceManager.GetString("MasteriestagCClass35", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief07-tagMasteryBrief08.
/// </summary>
public static string MasteriestagCClass36 {
get {
return ResourceManager.GetString("MasteriestagCClass36", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief02-x2tagRuneMasteryBrief.
/// </summary>
public static string Masteriesx2tag_class_defense_rm {
get {
return ResourceManager.GetString("Masteriesx2tag_class_defense_rm", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to xtagMasteryBrief09-x2tagRuneMasteryBrief.
/// </summary>
public static string Masteriesx2tag_class_dream_rm {
get {
return ResourceManager.GetString("Masteriesx2tag_class_dream_rm", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief03-x2tagRuneMasteryBrief.
/// </summary>
public static string Masteriesx2tag_class_earth_rm {
get {
return ResourceManager.GetString("Masteriesx2tag_class_earth_rm", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief06-x2tagRuneMasteryBrief.
/// </summary>
public static string Masteriesx2tag_class_hunting_rm {
get {
return ResourceManager.GetString("Masteriesx2tag_class_hunting_rm", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief08-x2tagRuneMasteryBrief.
/// </summary>
public static string Masteriesx2tag_class_nature_rm {
get {
return ResourceManager.GetString("Masteriesx2tag_class_nature_rm", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to x2tagRuneMasteryBrief.
/// </summary>
public static string Masteriesx2tag_class_rm_rm {
get {
return ResourceManager.GetString("Masteriesx2tag_class_rm_rm", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief07-x2tagRuneMasteryBrief.
/// </summary>
public static string Masteriesx2tag_class_spirit_rm {
get {
return ResourceManager.GetString("Masteriesx2tag_class_spirit_rm", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief05-x2tagRuneMasteryBrief.
/// </summary>
public static string Masteriesx2tag_class_stealth_rm {
get {
return ResourceManager.GetString("Masteriesx2tag_class_stealth_rm", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief04-x2tagRuneMasteryBrief.
/// </summary>
public static string Masteriesx2tag_class_storm_rm {
get {
return ResourceManager.GetString("Masteriesx2tag_class_storm_rm", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief01-x2tagRuneMasteryBrief.
/// </summary>
public static string Masteriesx2tag_class_warfare_rm {
get {
return ResourceManager.GetString("Masteriesx2tag_class_warfare_rm", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to x4tagNeidan.
/// </summary>
public static string Masteriesx4tagNeidan {
get {
return ResourceManager.GetString("Masteriesx4tagNeidan", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief02-x4tagNeidan.
/// </summary>
public static string Masteriesx4tagNeidanDefense {
get {
return ResourceManager.GetString("Masteriesx4tagNeidanDefense", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to xtagMasteryBrief09-x4tagNeidan.
/// </summary>
public static string Masteriesx4tagNeidanDream {
get {
return ResourceManager.GetString("Masteriesx4tagNeidanDream", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief03-x4tagNeidan.
/// </summary>
public static string Masteriesx4tagNeidanEarth {
get {
return ResourceManager.GetString("Masteriesx4tagNeidanEarth", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief06-x4tagNeidan.
/// </summary>
public static string Masteriesx4tagNeidanHunting {
get {
return ResourceManager.GetString("Masteriesx4tagNeidanHunting", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief08-x4tagNeidan.
/// </summary>
public static string Masteriesx4tagNeidanNature {
get {
return ResourceManager.GetString("Masteriesx4tagNeidanNature", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief05-x4tagNeidan.
/// </summary>
public static string Masteriesx4tagNeidanRogue {
get {
return ResourceManager.GetString("Masteriesx4tagNeidanRogue", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to x2tagRuneMasteryBrief-x4tagNeidan.
/// </summary>
public static string Masteriesx4tagNeidanRune {
get {
return ResourceManager.GetString("Masteriesx4tagNeidanRune", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief07-x4tagNeidan.
/// </summary>
public static string Masteriesx4tagNeidanSpirit {
get {
return ResourceManager.GetString("Masteriesx4tagNeidanSpirit", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief04-x4tagNeidan.
/// </summary>
public static string Masteriesx4tagNeidanStorm {
get {
return ResourceManager.GetString("Masteriesx4tagNeidanStorm", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief01-x4tagNeidan.
/// </summary>
public static string Masteriesx4tagNeidanWarfare {
get {
return ResourceManager.GetString("Masteriesx4tagNeidanWarfare", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to xtagMasteryBrief09.
/// </summary>
public static string MasteriesxtagCharacterClass01 {
get {
return ResourceManager.GetString("MasteriesxtagCharacterClass01", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief01-xtagMasteryBrief09.
/// </summary>
public static string MasteriesxtagCharacterClass02 {
get {
return ResourceManager.GetString("MasteriesxtagCharacterClass02", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief02-xtagMasteryBrief09.
/// </summary>
public static string MasteriesxtagCharacterClass03 {
get {
return ResourceManager.GetString("MasteriesxtagCharacterClass03", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief03-xtagMasteryBrief09.
/// </summary>
public static string MasteriesxtagCharacterClass04 {
get {
return ResourceManager.GetString("MasteriesxtagCharacterClass04", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief04-xtagMasteryBrief09.
/// </summary>
public static string MasteriesxtagCharacterClass05 {
get {
return ResourceManager.GetString("MasteriesxtagCharacterClass05", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief06-xtagMasteryBrief09.
/// </summary>
public static string MasteriesxtagCharacterClass06 {
get {
return ResourceManager.GetString("MasteriesxtagCharacterClass06", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief05-xtagMasteryBrief09.
/// </summary>
public static string MasteriesxtagCharacterClass07 {
get {
return ResourceManager.GetString("MasteriesxtagCharacterClass07", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief08-xtagMasteryBrief09.
/// </summary>
public static string MasteriesxtagCharacterClass08 {
get {
return ResourceManager.GetString("MasteriesxtagCharacterClass08", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to tagMasteryBrief07-xtagMasteryBrief09.
/// </summary>
public static string MasteriesxtagCharacterClass09 {
get {
return ResourceManager.GetString("MasteriesxtagCharacterClass09", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Max Level.
/// </summary>
public static string MaxLevel {
get {
return ResourceManager.GetString("MaxLevel", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Money.
/// </summary>
public static string Money {
get {
return ResourceManager.GetString("Money", resourceCulture);
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap NewAboutGraphic {
get {
object obj = ResourceManager.GetObject("NewAboutGraphic", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap NewSplashScreen {
get {
object obj = ResourceManager.GetObject("NewSplashScreen", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized string similar to Deaths.
/// </summary>
public static string NumberOfDeaths {
get {
return ResourceManager.GetString("NumberOfDeaths", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Kills.
/// </summary>
public static string NumberOfKills {
get {
return ResourceManager.GetString("NumberOfKills", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Hits Inflicted.
/// </summary>
public static string NumHitsInflicted {
get {
return ResourceManager.GetString("NumHitsInflicted", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Hits Recv.
/// </summary>
public static string NumHitsReceived {
get {
return ResourceManager.GetString("NumHitsReceived", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Overwrite Sack.
/// </summary>
public static string PlayerOverwriteSack {
get {
return ResourceManager.GetString("PlayerOverwriteSack", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to The destination is not empty.
///Are you sure you want to overwrite?.
/// </summary>
public static string PlayerOverwriteSackMsg {
get {
return ResourceManager.GetString("PlayerOverwriteSackMsg", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Empty Bag?.
/// </summary>
public static string PlayerPanelEmpty {
get {
return ResourceManager.GetString("PlayerPanelEmpty", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Are you sure you wish to delete all of the items in the bag?.
/// </summary>
public static string PlayerPanelEmptyMsg {
get {
return ResourceManager.GetString("PlayerPanelEmptyMsg", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Copy Bag.
/// </summary>
public static string PlayerPanelMenuCopy {
get {
return ResourceManager.GetString("PlayerPanelMenuCopy", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Disable all tooltips.
/// </summary>
public static string PlayerPanelMenuDisableAllTooltip {
get {
return ResourceManager.GetString("PlayerPanelMenuDisableAllTooltip", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Disable tooltip.
/// </summary>
public static string PlayerPanelMenuDisableTooltip {
get {
return ResourceManager.GetString("PlayerPanelMenuDisableTooltip", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Empty Bag.
/// </summary>
public static string PlayerPanelMenuEmpty {
get {
return ResourceManager.GetString("PlayerPanelMenuEmpty", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Enable all tooltips.
/// </summary>
public static string PlayerPanelMenuEnableAllTooltip {
get {
return ResourceManager.GetString("PlayerPanelMenuEnableAllTooltip", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Enable tooltip.
/// </summary>
public static string PlayerPanelMenuEnableTooltip {
get {
return ResourceManager.GetString("PlayerPanelMenuEnableTooltip", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Merge Bag.
/// </summary>
public static string PlayerPanelMenuMerge {
get {
return ResourceManager.GetString("PlayerPanelMenuMerge", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Move Bag.
/// </summary>
public static string PlayerPanelMenuMove {
get {
return ResourceManager.GetString("PlayerPanelMenuMove", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to (No character selected).
/// </summary>
public static string PlayerPanelNoPlayer {
get {
return ResourceManager.GetString("PlayerPanelNoPlayer", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to (No vault selected).
/// </summary>
public static string PlayerPanelNoVault {
get {
return ResourceManager.GetString("PlayerPanelNoVault", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Time Played.
/// </summary>
public static string PlayTimeInSeconds {
get {
return ResourceManager.GetString("PlayTimeInSeconds", resourceCulture);
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap ProgressBar {
get {
object obj = ResourceManager.GetObject("ProgressBar", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap ProgressBarFill {
get {
object obj = ResourceManager.GetObject("ProgressBarFill", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized string similar to Reset Attributes.
/// </summary>
public static string ResetAttributesButton {
get {
return ResourceManager.GetString("ResetAttributesButton", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Reset Masteries.
/// </summary>
public static string ResetMasteriesButton {
get {
return ResourceManager.GetString("ResetMasteriesButton", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Container.
/// </summary>
public static string ResultsContainer {
get {
return ResourceManager.GetString("ResultsContainer", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Equipment.
/// </summary>
public static string ResultsContainerEquip {
get {
return ResourceManager.GetString("ResultsContainerEquip", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Player.
/// </summary>
public static string ResultsContainerPlayer {
get {
return ResourceManager.GetString("ResultsContainerPlayer", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Stash.
/// </summary>
public static string ResultsContainerStash {
get {
return ResourceManager.GetString("ResultsContainerStash", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to ContainerType.
/// </summary>
public static string ResultsContainerType {
get {
return ResourceManager.GetString("ResultsContainerType", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Vault.
/// </summary>
public static string ResultsContainerVault {
get {
return ResourceManager.GetString("ResultsContainerVault", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Item.
/// </summary>
public static string ResultsItem {
get {
return ResourceManager.GetString("ResultsItem", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Level.
/// </summary>
public static string ResultsLevel {
get {
return ResourceManager.GetString("ResultsLevel", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Quality.
/// </summary>
public static string ResultsQuality {
get {
return ResourceManager.GetString("ResultsQuality", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Sack.
/// </summary>
public static string ResultsSack {
get {
return ResourceManager.GetString("ResultsSack", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to {0} Items Found with '{1}'.
/// </summary>
public static string ResultsText {
get {
return ResourceManager.GetString("ResultsText", resourceCulture);
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap rotatedautosortdown01 {
get {
object obj = ResourceManager.GetObject("rotatedautosortdown01", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap rotatedautosortover01 {
get {
object obj = ResourceManager.GetObject("rotatedautosortover01", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap rotatedautosortup01 {
get {
object obj = ResourceManager.GetObject("rotatedautosortup01", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized string similar to Please set item down..
/// </summary>
public static string SackPanelAutoSort {
get {
return ResourceManager.GetString("SackPanelAutoSort", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Autosort Error..
/// </summary>
public static string SackPanelAutoSortError {
get {
return ResourceManager.GetString("SackPanelAutoSortError", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to There was an error during sorting.
///Not all items have been placed..
/// </summary>
public static string SackPanelAutoSortErrorMsg {
get {
return ResourceManager.GetString("SackPanelAutoSortErrorMsg", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to You are currently holding an item.
///Please place the item down somewhere before sorting..
/// </summary>
public static string SackPanelAutoSortMsg {
get {
return ResourceManager.GetString("SackPanelAutoSortMsg", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Delete Item.
/// </summary>
public static string SackPanelDelete {
get {
return ResourceManager.GetString("SackPanelDelete", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to This item will be PERMANENTLY DELETED!
///Are you sure you want to delete this item?.
/// </summary>
public static string SackPanelDeleteMsg {
get {
return ResourceManager.GetString("SackPanelDeleteMsg", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Delete Multiple Items.
/// </summary>
public static string SackPanelDeleteMulti {
get {
return ResourceManager.GetString("SackPanelDeleteMulti", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Are you sure you want to PERMANENTLY DELETE the selected items?.
/// </summary>
public static string SackPanelDeleteMultiMsg {
get {
return ResourceManager.GetString("SackPanelDeleteMultiMsg", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Change Completion Bonus.
/// </summary>
public static string SackPanelMenuBonus {
get {
return ResourceManager.GetString("SackPanelMenuBonus", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Complete Charm.
/// </summary>
public static string SackPanelMenuCharm {
get {
return ResourceManager.GetString("SackPanelMenuCharm", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Clear Selection.
/// </summary>
public static string SackPanelMenuClear {
get {
return ResourceManager.GetString("SackPanelMenuClear", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Copy Item.
/// </summary>
public static string SackPanelMenuCopy {
get {
return ResourceManager.GetString("SackPanelMenuCopy", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Delete.
/// </summary>
public static string SackPanelMenuDelete {
get {
return ResourceManager.GetString("SackPanelMenuDelete", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Duplicate Item.
/// </summary>
public static string SackPanelMenuDuplicate {
get {
return ResourceManager.GetString("SackPanelMenuDuplicate", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Craft Artifact.
/// </summary>
public static string SackPanelMenuFormulae {
get {
return ResourceManager.GetString("SackPanelMenuFormulae", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Move Item To.
/// </summary>
public static string SackPanelMenuMoveTo {
get {
return ResourceManager.GetString("SackPanelMenuMoveTo", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Player Panel.
/// </summary>
public static string SackPanelMenuPlayer {
get {
return ResourceManager.GetString("SackPanelMenuPlayer", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Properties.
/// </summary>
public static string SackPanelMenuProperties {
get {
return ResourceManager.GetString("SackPanelMenuProperties", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Complete Relic.
/// </summary>
public static string SackPanelMenuRelic {
get {
return ResourceManager.GetString("SackPanelMenuRelic", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Remove Relic.
/// </summary>
public static string SackPanelMenuRemoveRelic {
get {
return ResourceManager.GetString("SackPanelMenuRemoveRelic", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Change Item Seed....
/// </summary>
public static string SackPanelMenuSeed {
get {
return ResourceManager.GetString("SackPanelMenuSeed", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Create Set Items.
/// </summary>
public static string SackPanelMenuSet {
get {
return ResourceManager.GetString("SackPanelMenuSet", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Split.
/// </summary>
public static string SackPanelMenuSplit {
get {
return ResourceManager.GetString("SackPanelMenuSplit", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Stash Panel.
/// </summary>
public static string SackPanelMenuStash {
get {
return ResourceManager.GetString("SackPanelMenuStash", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Trash Panel.
/// </summary>
public static string SackPanelMenuTrash {
get {
return ResourceManager.GetString("SackPanelMenuTrash", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Vault Panel.
/// </summary>
public static string SackPanelMenuVault {
get {
return ResourceManager.GetString("SackPanelMenuVault", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Secondary Vault.
/// </summary>
public static string SackPanelMenuVault2 {
get {
return ResourceManager.GetString("SackPanelMenuVault2", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Are you sure you want to remove the relic from this item?.
/// </summary>
public static string SackPanelRemoveRelicMsg {
get {
return ResourceManager.GetString("SackPanelRemoveRelicMsg", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Building Data.
/// </summary>
public static string SearchBuildingData {
get {
return ResourceManager.GetString("SearchBuildingData", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Search for an item.
/// </summary>
public static string SearchDialogCaption {
get {
return ResourceManager.GetString("SearchDialogCaption", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Search for items within the loaded files: vaults, stashes, inventories.
///
///You can combine the following search options(all are optional):
///* Name: It must be the first search term. Here is an example: 'arctic & of frost'
///* Type: by using @ at the beginning of the search term for example '@sword'
///* Attributes: by using # at the beginning of the search term for example '#elemental resistance'
///* Rarity: by using $ at the beginning of the search term for example '$rare'
///You can use | in a term as an OR con [rest of string was truncated]";.
/// </summary>
public static string SearchDialogText {
get {
return ResourceManager.GetString("SearchDialogText", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Search engine is ready.
/// </summary>
public static string SearchEngineReady {
get {
return ResourceManager.GetString("SearchEngineReady", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to {0} filters selected.
/// </summary>
public static string SearchFiltersSelected {
get {
return ResourceManager.GetString("SearchFiltersSelected", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Having Charm.
/// </summary>
public static string SearchHavingCharm {
get {
return ResourceManager.GetString("SearchHavingCharm", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Having Relic.
/// </summary>
public static string SearchHavingRelic {
get {
return ResourceManager.GetString("SearchHavingRelic", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Item count is {0}.
/// </summary>
public static string SearchItemCountIs {
get {
return ResourceManager.GetString("SearchItemCountIs", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to {0} matching item(s).
/// </summary>
public static string SearchMatchingItemsTT {
get {
return ResourceManager.GetString("SearchMatchingItemsTT", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Operator.
/// </summary>
public static string SearchOperator {
get {
return ResourceManager.GetString("SearchOperator", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to And.
/// </summary>
public static string SearchOperatorAnd {
get {
return ResourceManager.GetString("SearchOperatorAnd", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Find items having all filters.
/// </summary>
public static string SearchOperatorDescAnd {
get {
return ResourceManager.GetString("SearchOperatorDescAnd", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Find items having one filter or more.
/// </summary>
public static string SearchOperatorDescOr {
get {
return ResourceManager.GetString("SearchOperatorDescOr", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Or.
/// </summary>
public static string SearchOperatorOr {
get {
return ResourceManager.GetString("SearchOperatorOr", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Search Operator.
/// </summary>
public static string SearchOperatorTitle {
get {
return ResourceManager.GetString("SearchOperatorTitle", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Queries.
/// </summary>
public static string SearchQueries {
get {
return ResourceManager.GetString("SearchQueries", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Query name already exists. Do you want to override it ?.
/// </summary>
public static string SearchQueryNameAlreadyExist {
get {
return ResourceManager.GetString("SearchQueryNameAlreadyExist", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Query name must be set.
/// </summary>
public static string SearchQueryNameMustBeSet {
get {
return ResourceManager.GetString("SearchQueryNameMustBeSet", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Reduce categories during selection.
/// </summary>
public static string SearchReduceCategoriesDuringSelection {
get {
return ResourceManager.GetString("SearchReduceCategoriesDuringSelection", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Some filters must be selected.
/// </summary>
public static string SearchTermRequired {
get {
return ResourceManager.GetString("SearchTermRequired", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to There is too many results to display.{^N}Adjust your search..
/// </summary>
public static string SearchTooManyResultToDisplay {
get {
return ResourceManager.GetString("SearchTooManyResultToDisplay", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Visible elements/category.
/// </summary>
public static string SearchVisibleElementsPerCategory {
get {
return ResourceManager.GetString("SearchVisibleElementsPerCategory", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Random.
/// </summary>
public static string SeedBtnRandom {
get {
return ResourceManager.GetString("SeedBtnRandom", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Titan Quest uses the Item Seed to randomize the stats
///of your items so that no two items look exactly alike.
///It is unknown exactly how the seed affects your item
///stats. Changing the seed will cause some slight change
///in the stats of your item the next time you play the game.
///
///Pick a number between 1 and 32767.
/// </summary>
public static string SeedLabel1 {
get {
return ResourceManager.GetString("SeedLabel1", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Item Seed must be a valid integer between 1 and 32767.
/// </summary>
public static string SeedRange {
get {
return ResourceManager.GetString("SeedRange", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Change Item Seed.
/// </summary>
public static string SeedText {
get {
return ResourceManager.GetString("SeedText", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Enable Detailed Tooltip View.
/// </summary>
public static string SettingEnableDetailedTooltipView {
get {
return ResourceManager.GetString("SettingEnableDetailedTooltipView", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Split tooltip attributes into Prefix/Base/Suffix categories.
/// </summary>
public static string SettingEnableDetailedTooltipViewTT {
get {
return ResourceManager.GetString("SettingEnableDetailedTooltipViewTT", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Allow Item Copying.
/// </summary>
public static string SettingsAllowCopy {
get {
return ResourceManager.GetString("SettingsAllowCopy", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Enables copy selection in the context menu..
/// </summary>
public static string SettingsAllowCopyTT {
get {
return ResourceManager.GetString("SettingsAllowCopyTT", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Allow Item Editing Features.
/// </summary>
public static string SettingsAllowEdit {
get {
return ResourceManager.GetString("SettingsAllowEdit", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Allow Character Editing Features.
/// </summary>
public static string SettingsAllowEditCE {
get {
return ResourceManager.GetString("SettingsAllowEditCE", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Turns on the editing features in the context menu.
///These include item creation and modification..
/// </summary>
public static string SettingsAllowEditTT {
get {
return ResourceManager.GetString("SettingsAllowEditTT", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Automatically Check For Updates.
/// </summary>
public static string SettingsAutoUpdate {
get {
return ResourceManager.GetString("SettingsAutoUpdate", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Selecting this item will automatically check
///for new versions of TQVault on the web when
///the program starts up. May cause startup to
///take longer if the network connection is slow..
/// </summary>
public static string SettingsAutoUpdateTT {
get {
return ResourceManager.GetString("SettingsAutoUpdateTT", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Please select the path for the Immortal Throne game files..
/// </summary>
public static string SettingsBrowseIT {
get {
return ResourceManager.GetString("SettingsBrowseIT", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Please select the path for the Titan Quest game files..
/// </summary>
public static string SettingsBrowseTQ {
get {
return ResourceManager.GetString("SettingsBrowseTQ", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Please select the path for TQVault Vault files..
/// </summary>
public static string SettingsBrowseVault {
get {
return ResourceManager.GetString("SettingsBrowseVault", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Auto detect Game Paths.
/// </summary>
public static string SettingsDetectGamePath {
get {
return ResourceManager.GetString("SettingsDetectGamePath", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Auto detect Language.
/// </summary>
public static string SettingsDetectLanguage {
get {
return ResourceManager.GetString("SettingsDetectLanguage", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Allow Hot Reload Features.
/// </summary>
public static string SettingsEnableHotReload {
get {
return ResourceManager.GetString("SettingsEnableHotReload", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to All "in game" update of a monitored save file (Player, Stash, Transfer Stash, Relic Stash) are visible in real time in TQVaultAE.
///In case you have unsaved changes in TQVaultAE, the "in game" saving system prevail and override your changes.
///You still have to close TQVaultAE to apply your changes.
/// .
/// </summary>
public static string SettingsEnableHotReloadTT {
get {
return ResourceManager.GetString("SettingsEnableHotReloadTT", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Enable Item Requirement Restriction.
/// </summary>
public static string SettingsEnableItemRequirementRestriction {
get {
return ResourceManager.GetString("SettingsEnableItemRequirementRestriction", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to When enabled, a red background color is displayed on items where the selected character does not meet the item requirements.
///The character will also not be able to equip items where the requirements are not met..
/// </summary>
public static string SettingsEnableItemRequirementRestrictionTT {
get {
return ResourceManager.GetString("SettingsEnableItemRequirementRestrictionTT", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Enable Custom Maps.
/// </summary>
public static string SettingsEnableMod {
get {
return ResourceManager.GetString("SettingsEnableMod", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Selecting this item will
///enable the drop down
///to select custom maps..
/// </summary>
public static string SettingsEnableModTT {
get {
return ResourceManager.GetString("SettingsEnableModTT", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Check Now.
/// </summary>
public static string SettingsForceCheck {
get {
return ResourceManager.GetString("SettingsForceCheck", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Manually checks if there are any updates
///available..
/// </summary>
public static string SettingsForceCheckTT {
get {
return ResourceManager.GetString("SettingsForceCheckTT", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Item BG Alpha Color :.
/// </summary>
public static string SettingsItemBGColorOpacityLabel {
get {
return ResourceManager.GetString("SettingsItemBGColorOpacityLabel", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Item background color opacity level.
/// </summary>
public static string SettingsItemBGColorOpacityLabelTT {
get {
return ResourceManager.GetString("SettingsItemBGColorOpacityLabelTT", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Vault Path.
/// </summary>
public static string SettingsLabel1 {
get {
return ResourceManager.GetString("SettingsLabel1", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Game Language.
/// </summary>
public static string SettingsLabel2 {
get {
return ResourceManager.GetString("SettingsLabel2", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to TQ Game Path.
/// </summary>
public static string SettingsLabel3 {
get {
return ResourceManager.GetString("SettingsLabel3", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to IT Game Path.
/// </summary>
public static string SettingsLabel4 {
get {
return ResourceManager.GetString("SettingsLabel4", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Custom Map.
/// </summary>
public static string SettingsLabel5 {
get {
return ResourceManager.GetString("SettingsLabel5", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Automatically Load the last opened Character.
/// </summary>
public static string SettingsLoadChar {
get {
return ResourceManager.GetString("SettingsLoadChar", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Selecting this option will automatically load
///the last open character when TQVault was closed..
/// </summary>
public static string SettingsLoadCharTT {
get {
return ResourceManager.GetString("SettingsLoadCharTT", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Automatically Load the last opened Vault.
/// </summary>
public static string SettingsLoadVault {
get {
return ResourceManager.GetString("SettingsLoadVault", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Selecting this item will automatically load the
///last opened vault when TQVault was closed.
///TQVault will automatically open Main Vault
///if nothing is chosen..
/// </summary>
public static string SettingsLoadVaultTT {
get {
return ResourceManager.GetString("SettingsLoadVaultTT", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Bypass Confirmation Messages.
/// </summary>
public static string SettingsNoWarning {
get {
return ResourceManager.GetString("SettingsNoWarning", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to When enabled, confirmation messages will no
///longer be shown for item deletion and
///relic removal or if there are items in the trash
///when TQVault is closed..
/// </summary>
public static string SettingsNoWarningTT {
get {
return ResourceManager.GetString("SettingsNoWarningTT", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Player Equipment ReadOnly.
/// </summary>
public static string SettingsPlayerReadonly {
get {
return ResourceManager.GetString("SettingsPlayerReadonly", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Avoid save game corruption that occurs randomly. When enabled, player equipment will be read-only, you won't be able to select or move any item..
/// </summary>
public static string SettingsPlayerReadonlyTT {
get {
return ResourceManager.GetString("SettingsPlayerReadonlyTT", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Pre-Load All Vault And Character Files.
/// </summary>
public static string SettingsPreLoad {
get {
return ResourceManager.GetString("SettingsPreLoad", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Selecting this item will automatically load all
///of the available character, stash and vault files
///on startup. This aids the search function, but
///increases startup time..
/// </summary>
public static string SettingsPreLoadTT {
get {
return ResourceManager.GetString("SettingsPreLoadTT", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Reset.
/// </summary>
public static string SettingsReset {
get {
return ResourceManager.GetString("SettingsReset", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Causes the configuration to Reset to the
///last saved configuration..
/// </summary>
public static string SettingsResetTT {
get {
return ResourceManager.GetString("SettingsResetTT", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Automatically Bypass Title Screen.
/// </summary>
public static string SettingsSkipTitle {
get {
return ResourceManager.GetString("SettingsSkipTitle", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Ticking this box will automatically hit
///the Enter key on the title screen..
/// </summary>
public static string SettingsSkipTitleTT {
get {
return ResourceManager.GetString("SettingsSkipTitleTT", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Configure Settings.
/// </summary>
public static string SettingsTitle {
get {
return ResourceManager.GetString("SettingsTitle", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Skill Points.
/// </summary>
public static string SkillPoints {
get {
return ResourceManager.GetString("SkillPoints", resourceCulture);
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap SplashScreen {
get {
object obj = ResourceManager.GetObject("SplashScreen", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized string similar to Cannot find Stash file..
/// </summary>
public static string StashNotFound {
get {
return ResourceManager.GetString("StashNotFound", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to The Stash file cannot be found.
///Please visit the Caravan Trader in game to create the file.
///The Storage Area tab will be unavailable for this character..
/// </summary>
public static string StashNotFoundMsg {
get {
return ResourceManager.GetString("StashNotFoundMsg", resourceCulture);
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap StashPanel {
get {
object obj = ResourceManager.GetObject("StashPanel", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized string similar to Equipment.
/// </summary>
public static string StashPanelBtn1 {
get {
return ResourceManager.GetString("StashPanelBtn1", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Transfer Area.
/// </summary>
public static string StashPanelBtn2 {
get {
return ResourceManager.GetString("StashPanelBtn2", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Storage Area.
/// </summary>
public static string StashPanelBtn3 {
get {
return ResourceManager.GetString("StashPanelBtn3", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Caravan.
/// </summary>
public static string StashPanelText {
get {
return ResourceManager.GetString("StashPanelText", resourceCulture);
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap StashTabDown {
get {
object obj = ResourceManager.GetObject("StashTabDown", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap StashTabOver {
get {
object obj = ResourceManager.GetObject("StashTabOver", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap StashTabUp {
get {
object obj = ResourceManager.GetObject("StashTabUp", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized string similar to {^O}Always use special animation.
/// </summary>
public static string TextTag_alwaysUseSpecialAnimation {
get {
return ResourceManager.GetString("TextTag_alwaysUseSpecialAnimation", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to {%.0f0}% Bonus Health.
/// </summary>
public static string TextTag_bonusLifePercent {
get {
return ResourceManager.GetString("TextTag_bonusLifePercent", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to {%.0f0} Bonus Health.
/// </summary>
public static string TextTag_bonusLifePoints {
get {
return ResourceManager.GetString("TextTag_bonusLifePoints", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to {%.0f0}% Bonus Energy.
/// </summary>
public static string TextTag_bonusManaPercent {
get {
return ResourceManager.GetString("TextTag_bonusManaPercent", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to {%.0f0} Bonus Energy.
/// </summary>
public static string TextTag_bonusManaPoints {
get {
return ResourceManager.GetString("TextTag_bonusManaPoints", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to {%.0f0}% Defensive Total Speed Chance.
/// </summary>
public static string TextTag_defensiveTotalSpeedChance {
get {
return ResourceManager.GetString("TextTag_defensiveTotalSpeedChance", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to {^O}Display as quest item.
/// </summary>
public static string TextTag_DisplayAsQuestItem {
get {
return ResourceManager.GetString("TextTag_DisplayAsQuestItem", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to {^D}Drop mesh don't override textures.
/// </summary>
public static string TextTag_dropMeshDontOverrideTextures {
get {
return ResourceManager.GetString("TextTag_dropMeshDontOverrideTextures", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to {%.0f0} Head Velocity.
/// </summary>
public static string TextTag_headVelocity {
get {
return ResourceManager.GetString("TextTag_headVelocity", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to {%.0f0} Meter Max Distance.
/// </summary>
public static string TextTag_maxDistance {
get {
return ResourceManager.GetString("TextTag_maxDistance", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to {^O}Can't be dispelled.
/// </summary>
public static string TextTag_notDispelable {
get {
return ResourceManager.GetString("TextTag_notDispelable", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to @tagRace03P.
/// </summary>
public static string TextTag_racialBonusRaceBeast {
get {
return ResourceManager.GetString("TextTag_racialBonusRaceBeast", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to @tagRace04P.
/// </summary>
public static string TextTag_racialBonusRaceBeastman {
get {
return ResourceManager.GetString("TextTag_racialBonusRaceBeastman", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to @tagRace10P.
/// </summary>
public static string TextTag_racialBonusRaceConstruct {
get {
return ResourceManager.GetString("TextTag_racialBonusRaceConstruct", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to @tagRace07P.
/// </summary>
public static string TextTag_racialBonusRaceDemon {
get {
return ResourceManager.GetString("TextTag_racialBonusRaceDemon", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to @tagRace12P.
/// </summary>
public static string TextTag_racialBonusRaceDevice {
get {
return ResourceManager.GetString("TextTag_racialBonusRaceDevice", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to @x2tagRace02P.
/// </summary>
public static string TextTag_racialBonusRaceGhost {
get {
return ResourceManager.GetString("TextTag_racialBonusRaceGhost", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to @x2tagRace01P.
/// </summary>
public static string TextTag_racialBonusRaceGiant {
get {
return ResourceManager.GetString("TextTag_racialBonusRaceGiant", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to @tagRace05P.
/// </summary>
public static string TextTag_racialBonusRaceInsectoid {
get {
return ResourceManager.GetString("TextTag_racialBonusRaceInsectoid", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to @tagRace11P.
/// </summary>
public static string TextTag_racialBonusRaceMagical {
get {
return ResourceManager.GetString("TextTag_racialBonusRaceMagical", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to @xtagRace01P.
/// </summary>
public static string TextTag_racialBonusRaceOlympian {
get {
return ResourceManager.GetString("TextTag_racialBonusRaceOlympian", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to @tagRace01P.
/// </summary>
public static string TextTag_racialBonusRacePlant {
get {
return ResourceManager.GetString("TextTag_racialBonusRacePlant", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to @tagRace08P.
/// </summary>
public static string TextTag_racialBonusRaceTitan {
get {
return ResourceManager.GetString("TextTag_racialBonusRaceTitan", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to @tagRace06P.
/// </summary>
public static string TextTag_racialBonusRaceUndead {
get {
return ResourceManager.GetString("TextTag_racialBonusRaceUndead", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Artifact.
/// </summary>
public static string TextTag_tagArtifact {
get {
return ResourceManager.GetString("TextTag_tagArtifact", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Relic.
/// </summary>
public static string TextTag_tagRelic {
get {
return ResourceManager.GetString("TextTag_tagRelic", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Sword.
/// </summary>
public static string TextTag_tagSword {
get {
return ResourceManager.GetString("TextTag_tagSword", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to {%.0f0} Tail Velocity.
/// </summary>
public static string TextTag_tailVelocity {
get {
return ResourceManager.GetString("TextTag_tailVelocity", resourceCulture);
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap tqmedallion {
get {
object obj = ResourceManager.GetObject("tqmedallion", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap tqmedalliondoor {
get {
object obj = ResourceManager.GetObject("tqmedalliondoor", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
/// </summary>
public static System.Drawing.Icon TQVIcon {
get {
object obj = ResourceManager.GetObject("TQVIcon", resourceCulture);
return ((System.Drawing.Icon)(obj));
}
}
/// <summary>
/// Looks up a localized string similar to {0} {1} % complete..
/// </summary>
public static string UpdateCompletion {
get {
return ResourceManager.GetString("UpdateCompletion", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to {0} 0 % complete..
/// </summary>
public static string UpdateCompletion2 {
get {
return ResourceManager.GetString("UpdateCompletion2", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Current Version: {0}.
/// </summary>
public static string UpdateCurrentVer {
get {
return ResourceManager.GetString("UpdateCurrentVer", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Cannot Start Setup.
/// </summary>
public static string UpdateError {
get {
return ResourceManager.GetString("UpdateError", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to There was a problem with the download or the extraction.
///Please download the latest full setup install package and run it manually.
///Click OK to exit..
/// </summary>
public static string UpdateErrorMsg {
get {
return ResourceManager.GetString("UpdateErrorMsg", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to A newer version of TQVault has been found which requires a full installation..
/// </summary>
public static string UpdateFullInstall {
get {
return ResourceManager.GetString("UpdateFullInstall", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Latest Version: {0}.
/// </summary>
public static string UpdateLatestVer {
get {
return ResourceManager.GetString("UpdateLatestVer", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Minimum Version: {0}.
/// </summary>
public static string UpdateMinVer {
get {
return ResourceManager.GetString("UpdateMinVer", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to A newer version of TQVault has been found..
/// </summary>
public static string UpdateNewTQVault {
get {
return ResourceManager.GetString("UpdateNewTQVault", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to A newer version of the TQVault update program has been found..
/// </summary>
public static string UpdateNewUpdater {
get {
return ResourceManager.GetString("UpdateNewUpdater", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Your version is up to date..
/// </summary>
public static string UpdateNoUpdate {
get {
return ResourceManager.GetString("UpdateNoUpdate", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Click OK to perform an update..
/// </summary>
public static string UpdatePerform {
get {
return ResourceManager.GetString("UpdatePerform", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Click OK to perform both updates..
/// </summary>
public static string UpdatePerformBoth {
get {
return ResourceManager.GetString("UpdatePerformBoth", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Click OK to download and run the installer..
/// </summary>
public static string UpdateRunInstall {
get {
return ResourceManager.GetString("UpdateRunInstall", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to There was an error connecting to the update server.
///An update cannot be performed..
/// </summary>
public static string UpdateStreamError {
get {
return ResourceManager.GetString("UpdateStreamError", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to TQVault Updates.
/// </summary>
public static string UpdateText {
get {
return ResourceManager.GetString("UpdateText", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to The TQVault update program was either not found or the name has changed..
/// </summary>
public static string UpdateUpdaterNotFound {
get {
return ResourceManager.GetString("UpdateUpdaterNotFound", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to <EMPTY>.
/// </summary>
public static string VaultGroupBoxEmpty {
get {
return ResourceManager.GetString("VaultGroupBoxEmpty", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Loading Player and Vault Files....
/// </summary>
public static string VaultProgressText {
get {
return ResourceManager.GetString("VaultProgressText", resourceCulture);
}
}
}
}
| 36.103782 | 353 | 0.545104 | [
"MIT"
] | AirsQ/TQVaultAE | src/TQVaultAE.Presentation/Resources.Designer.cs | 164,203 | C# |
partial class C
{
}
partial class C1
{
int b = 55;
}
partial class C2
{
int b = 55;
C2 ()
{
}
}
class Test
{
public static void Main ()
{
}
} | 6.416667 | 27 | 0.545455 | [
"Apache-2.0"
] | 121468615/mono | mcs/tests/support-test-debug-04.cs | 154 | C# |
/*
* Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appstream-2016-12-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppStream.Model
{
/// <summary>
/// Describes an action and whether the action is enabled or disabled for users during
/// their streaming sessions.
/// </summary>
public partial class UserSetting
{
private Action _action;
private Permission _permission;
/// <summary>
/// Gets and sets the property Action.
/// <para>
/// The action that is enabled or disabled.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public Action Action
{
get { return this._action; }
set { this._action = value; }
}
// Check to see if Action property is set
internal bool IsSetAction()
{
return this._action != null;
}
/// <summary>
/// Gets and sets the property Permission.
/// <para>
/// Indicates whether the action is enabled or disabled.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public Permission Permission
{
get { return this._permission; }
set { this._permission = value; }
}
// Check to see if Permission property is set
internal bool IsSetPermission()
{
return this._permission != null;
}
}
} | 28.632911 | 107 | 0.616711 | [
"Apache-2.0"
] | DetlefGolze/aws-sdk-net | sdk/src/Services/AppStream/Generated/Model/UserSetting.cs | 2,262 | C# |
namespace DataCore.Adapter.RealTimeData {
/// <summary>
/// Specifies the type of an annotation.
/// </summary>
public enum AnnotationType {
/// <summary>
/// The annotation type is unknown.
/// </summary>
Unknown = 0,
/// <summary>
/// The annotation is instantaneous, and applies to a single point in time.
/// </summary>
Instantaneous = 1,
/// <summary>
/// The annotation applies to a time range, rather than a single point in time.
/// </summary>
TimeRange = 2
}
}
| 23.68 | 87 | 0.543919 | [
"Apache-2.0",
"MIT"
] | intelligentplant/AppStoreConnect.Adapters | src/DataCore.Adapter.Core/RealTimeData/AnnotationType.cs | 594 | C# |
using Business.Entities;
using Data.Core.Configurations;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration.Conventions;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Data.Core
{
public class DIContext : DbContext
{
public DIContext()
: base("DIContext")
{
Database.SetInitializer<DIContext>(new DbInitializer());
}
public DbSet<Blog> BlogSet { get; set; }
public DbSet<Article> ArticleSet { get; set; }
public virtual void Commit()
{
base.SaveChanges();
}
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
modelBuilder.Configurations.Add(new ArticleConfiguration());
modelBuilder.Configurations.Add(new BlogConfiguration());
}
}
}
| 26.236842 | 78 | 0.658977 | [
"MIT"
] | chsakell/wcfdependencyinjection | Data.Core/DIContext.cs | 999 | C# |
using FluentValidation;
using SmartStore.Admin.Models.Localization;
using SmartStore.Services.Localization;
namespace SmartStore.Admin.Validators.Localization
{
public partial class LanguageResourceValidator : AbstractValidator<LanguageResourceModel>
{
public LanguageResourceValidator(ILocalizationService localizationService)
{
RuleFor(x => x.ResourceName).NotNull().WithMessage(localizationService.GetResource("Admin.Configuration.Languages.Resources.Fields.Name.Required"));
RuleFor(x => x.ResourceValue).NotNull().WithMessage(localizationService.GetResource("Admin.Configuration.Languages.Resources.Fields.Value.Required"));
}
}
} | 46.266667 | 162 | 0.776657 | [
"MIT"
] | jenmcquade/csharp-snippets | SmartStoreNET-3.x/src/Presentation/SmartStore.Web/Administration/Validators/Localization/LanguageResourceValidator.cs | 696 | C# |
namespace TutteeFrame2.Model
{
public class Student : Person
{
private string classID;
private string punishmentlist;
private bool status;
public string ClassID { get => classID; set => classID = value; }
public string Punishment { get => punishmentlist; set => punishmentlist = value; }
public bool Status { get => status; set => status = value; }
public string ExactID
{
get => iD.Substring(4, 4);
}
public string GetGrade
{
get => classID.Substring(0, 2);
}
}
}
| 27.227273 | 90 | 0.557596 | [
"MIT"
] | princ3od/TutteeFrame-2.0 | TutteeFrame2/Model/Student.cs | 601 | C# |
//todo
namespace BaseWeb.Helpers
{
/// <summary>
/// todo: 再檢查
/// 單選下拉式欄位, 每個選項有header
/// </summary>
public static class XiSelectExtHelper
{
/*
/// <summary>
/// 下拉式欄位, 使用 bootstrap-select
/// </summary>
/// <param name="htmlHelper"></param>
/// <param name="rows">data source, 陣列內容依次為: title, key, value</param>
/// <param name="showValue">true(顯示value), false(顯示title)</param>
/// <returns></returns>
public static IHtmlContent XiSelectExt(this IHtmlHelper htmlHelper, string fid, string value, List<IdStrExtModel> rows, bool showValue = true, PropSelectDto prop = null)
{
return GetStr(fid, value, rows, showValue, prop);
}
public static IHtmlContent XiSelectExtFor<TModel, TProperty>(this IHtmlHelper<TModel> htmlHelper, Expression<Func<TModel, TProperty>> expression, List<IdStrExtModel> rows, bool showValue = true, PropSelectDto prop = null)
{
//讀取欄位 id
var metadata = ModelMetadata.FromLambdaExpression(expression, htmlHelper.ViewData);
var fid = metadata.PropertyName;
var value = metadata.Model != null ? metadata.Model.ToString() : "";
return GetStr(fid, value, rows, showValue, prop);
}
private static IHtmlContent GetStr(string fid, string value, List<IdStrExtModel> rows, bool showValue = true, PropSelectDto prop = null)
{
//var htmlRow = "";
var list = "";
var selected = "";
//var values = _Str.ToList(value, (char)seperator);
var htmlRow = @"
<option {4} style='padding-left:10px;' value='{0}' data-content=""
<div style='font-weight:bold;'>{2}</div>
<div style='white-space:pre-wrap;'>{1}</div>
"">{3}</option>
";
//加上第一筆空白選項的資料, 設定空白列title='' 才會顯示 placeHolder內容 !!
if (prop == null || prop.AddEmptyRow)
list += String.Format("<option value='{0}' {2}>{1}</option>", "", _Fun.SelectText, "title=''");
for (var i = 0; i < rows.Count; i++)
{
//List<string> items = rows[i];
selected = (value == rows[i].Id) ? "selected" : "";
var text = showValue ? rows[i].Str : rows[i].Ext;
list += String.Format(htmlRow, rows[i].Id, rows[i].Str, rows[i].Ext, text, selected);
}
//寬度必須為 data-width='100%' 才會有 RWD效果 !!
//用class來控制多欄位 !!
//xg-select-col 用來設定dropdown內框width=100%, xg-select-colX 用來設定RWD寬度
//會顯示紅色錯誤框的element 必須在 error label 上面且相鄰 !!
var html = @"
<div style='width:100%'>
<select id='{0}' name='{0}' data-show-content='false' {4}>
{1}
</select>
<span id='{2}' class='{3}'></span>
</div>
";
//get select property string
var prop2 = _Helper.GetSelectProp(prop);
html = String.Format(html, fid, list, fid + _WebFun.ErrTail, _WebFun.ErrLabCls, prop2);
return new HtmlString(html);
}
*/
}//class
}
| 38.875 | 229 | 0.558842 | [
"MIT"
] | bruce66tw/Base | BaseWeb/Helpers/XiSelectExtHelper.cs | 3,324 | C# |
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
using System;
namespace OwinHost.Options
{
public class CommandOption
{
public CommandOption(string name, string shortName, string description, Action<Command, string> accept)
{
Name = name;
ShortName = shortName;
Description = description;
Accept = accept;
Predicate = value =>
{
if (value.StartsWith("--", StringComparison.Ordinal))
{
return string.Equals(value.Substring(2), name, StringComparison.OrdinalIgnoreCase);
}
if (value.StartsWith("-", StringComparison.Ordinal))
{
return string.Equals(value.Substring(1), shortName, StringComparison.Ordinal);
}
return false;
};
}
public string Name { get; private set; }
public string ShortName { get; private set; }
public string Description { get; private set; }
public Func<string, bool> Predicate { get; private set; }
public Action<Command, string> Accept { get; private set; }
}
}
| 34.702703 | 132 | 0.57243 | [
"Apache-2.0"
] | 15901213541/-OAuth2.0 | src/OwinHost/Options/CommandOption.cs | 1,284 | C# |
using UnityEngine;
using System.Collections;
public class opponent_mallet : MonoBehaviour {
private GameObject mallet;
private Rigidbody malletRb;
private Vector3 initPos, currentPos;
private LayerMask tableLayer;
private GameObject controller;
private Vector3 targetPoint;
private Rigidbody coll;
private Rigidbody puckRb;
private GameObject puck;
private ParticleSystem partSys;
private Vector3 forward = new Vector3 (0f, 0f, 1f);
private Vector3 up = new Vector3 (0f, 1f, 0f);
public float inputPadding = 0.0f;
public float inputSpeed = 2.0f;
public float playerSpeed;
public float puckSpeed;
private bool isPaused;
// mallet diameter 4 1/2"
// surface length 98
// edge of rink is z = 1
// min z = 3.25
// max z = 30.125
// surface width 50 (x = 25)
// surface height 12
// origin centered at p1 edge of rink (25, 0, 97
// blue line edge 15 5/8" from center line
// 48" - 15 5/8" = 32 3/8"
// Use this for initialization
void Start () {
mallet = GameObject.FindGameObjectWithTag("opponent_mallet");
malletRb = mallet.GetComponent<Rigidbody> ();
initPos = mallet.GetComponent<Transform>().position;
tableLayer = 1 << LayerMask.NameToLayer ("surface");
controller = GameObject.FindGameObjectWithTag ("GameController");
partSys = mallet.GetComponent<ParticleSystem> ();
// ai = GameObject.Find ("AI").GetComponent<AI> ();
coll = GameObject.Find("Rink/Boards").GetComponentInChildren<Rigidbody> ();
//puckRb = GameObject.FindGameObjectWithTag ("puck").GetComponent<Rigidbody> ();
//puck = GameObject.FindGameObjectWithTag ("puck");
isPaused = true;
}
// Update is called once per frame
void FixedUpdate () {
/*
currentPos = mallet.GetComponent<Transform>().position;
Ray mouseRay = Camera.main.ScreenPointToRay (Input.mousePosition);
RaycastHit hit;
if (Physics.Raycast(mouseRay, out hit, 1000f)) {
hit.
if (hit.collider.material.name == "RinkSurface") {
targetPoint = hit.point;
print ("Hit at point: " + targetPoint);
if (Vector3.Distance(currentPos, targetPoint) > inputPadding) {
mallet.transform.position.Set (targetPoint.x, targetPoint.y, targetPoint.z);
Vector3 pos = Vector3.Lerp(currentPos, targetPoint, Time.deltaTime * inputSpeed);
print ("Moving mallet from point: " + currentPos + " to point: " + targetPoint);
}
}
}
*/
}
void Update() {
Vector3 malletVel = malletRb.velocity;
//Input to move the player
if (Input.GetKey (KeyCode.D)) {
if (malletVel.x > 0 || transform.position.x <= -21.75f) {
malletRb.velocity = new Vector3 (0, malletVel.y, malletVel.z);
}
malletRb.velocity += new Vector3 (-playerSpeed * Time.deltaTime, 0f, 0f);
//transform.Translate (-playerSpeed * Time.deltaTime, 0f, 0f);
}
if (Input.GetKey (KeyCode.A)) {
if (malletVel.x < 0 || transform.position.x >= 21.75f) {
malletRb.velocity = new Vector3 (0, malletVel.y, malletVel.z);
}
malletRb.velocity += new Vector3 (playerSpeed * Time.deltaTime, 0f, 0f);
//transform.Translate (playerSpeed * Time.deltaTime, 0f, 0f);
}
if (Input.GetKey (KeyCode.W)) {
if (malletVel.z > 0 || transform.position.z <= 60.0f) {
malletRb.velocity = new Vector3 (malletVel.x, malletVel.y, 0f);
}
malletRb.velocity += new Vector3 (0f, 0f, -playerSpeed * Time.deltaTime);
//transform.Translate (0f, 0f, playerSpeed * Time.deltaTime);
}
if (Input.GetKey (KeyCode.S)){
if (malletVel.z < 0 || transform.position.z >= 96.5f) {
malletRb.velocity = new Vector3 (malletVel.x, malletVel.y, 0f);
}
malletRb.velocity += new Vector3 (0f, 0f, playerSpeed * Time.deltaTime);
//transform.Translate (0f, 0f, -playerSpeed * Time.deltaTime);
}
//Collision detection with edges, basically we are restricting player movement
if (transform.position.x <= -21.75f)
transform.position = new Vector3 (-21.75f, transform.position.y, transform.position.z);
if (transform.position.x >= 21.75f)
transform.position = new Vector3 (21.75f, transform.position.y, transform.position.z);
if (transform.position.z <= 60.0f)
transform.position = new Vector3 ( transform.position.x, transform.position.y, 60.0f);
if (transform.position.z >= 96.5f)
transform.position = new Vector3 ( transform.position.x, transform.position.y, 96.5f);
}
void OnCollisionEnter(Collision c) {
print("Collision!");
if (c.gameObject.tag == "puck") {
print("puck collision!");
print ("puck: " + c.transform.position.ToString ());
print ("opponent mallet: " + transform.position.ToString ());
print ("opponent mallet forward: " + transform.forward.ToString ());
Vector3 collPoint = new Vector3 (c.transform.position.x, 0.5f, c.transform.position.z);
transform.LookAt (collPoint, up);
partSys.Play ();
// ai.counter = 0f; //see AI.cs for explanation
// 1/2* m1 * v1^2 + 1/2 * m2 * v2^2
//Controls to hit the striker
/*
if (Input.GetKey ("space")) { //if you keep space pressed and up arrow key and then touch, stiker is smashed
//---Control Part---
if (Input.GetKey ("up")) {
if (Input.GetKey ("right")) {
puckRb.velocity = new Vector3 (puckSpeed, puckRb.velocity.y, puckSpeed);
} else {
puckRb.velocity = new Vector3 (-puckSpeed, puckRb.velocity.y, puckSpeed);
}
}
} else { //no space pressed and then touch then a gentle push is given
if (Input.GetKey ("right")) {
puckRb.velocity = new Vector3 (puckSpeed * 0.5f, 0, puckSpeed * 0.60f);
} else {
puckRb.velocity = new Vector3 (puckSpeed * -0.5f, 0, puckSpeed * 0.60f);
}
}
*/
}
}
void OnCollisionExit(Collision c) {
if (c.gameObject.tag == "puck") {
transform.LookAt (forward, up);
}
}
public void pause() {
isPaused = true;
}
public void resetPos() {
malletRb.velocity.Set (0f, 0f, 0f);
transform.position = initPos;
}
public void unpause() {
isPaused = false;
}
/*
void newPoint(bool whoseServe) {
if (controller.isPlayerServe) {
}
}
*/
}
| 31.208333 | 111 | 0.672897 | [
"MPL-2.0",
"MPL-2.0-no-copyleft-exception"
] | mspringerneu/airHockeyRepo | Assets/Scripts/opponent_mallet.cs | 5,994 | C# |
//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;
//using System.Threading.Tasks;
//class LargestAreaInMatrix
//{
// static void Main()
// {
// string[] nums = Console.ReadLine().Split(' ');
// int n = int.Parse(nums[0]);
// int m = int.Parse(nums[1]);
// int[,] matrix = new int[n, m];
// for (int i = 0; i < n; i++)
// {
// string[] input = Console.ReadLine().Split(' ');
// for (int j = 0; j < input.Length; j++)
// {
// matrix[i, j] = int.Parse(input[j]);
// }
// }
// }
//}
using System;
using System.Linq;
using System.Collections;
namespace _07_Largest_Area_In_Matrix_2
{
class LargestAreaInMatrix2
{
// Declare Flags BitArray to
// be accessible in all methods
static BitArray[] isChecked;
static void Main()
{
// With Diagonals
// Wihtout Diagonals - > 100/ 100
// INPUT N Rows, M Columns
// Sizes[0] Rows, Sizes[1] Cols
short[] Sizes = Console.ReadLine()
.Trim(' ')
.Split(' ')
.Select(short.Parse)
.ToArray();
// Read The Array
int[][] toSearch = new int[Sizes[0]][];
//Initialize the bitarray for each row
isChecked = new BitArray[toSearch.Length];
for (int Row = 0; Row < toSearch.Length; Row++)
{
// Read Input row
toSearch[Row] = Console.ReadLine()
.Trim(' ')
.Split(' ')
.Select(int.Parse)
.ToArray();
// Create Flags for each element
// of the current input row
isChecked[Row] = new BitArray(toSearch[Row].Length);
}
// Output
var MaxSequence = int.MinValue;
// Check for each element
// not checked before
for (int Row = 0;
Row < toSearch.Length;
Row++)
{
for (int Col = 0;
Col < toSearch[Row].Length;
Col++)
{
int curSequence = 1;
if (isChecked[Row][Col] == false)
{
isChecked[Row][Col] = true;
// find sequence for current element
curSequence = CheckElement
(
Row,
Col,
curSequence,
toSearch
);
}
// Is the current sequence larger ?
MaxSequence = curSequence > MaxSequence ?
curSequence : MaxSequence;
}
}
// Print Output
Console.WriteLine(MaxSequence);
}
// Get Sequence - Up, Down, Left, Right
public static int CheckElement
(
int Row,
int Col,
int curSequence,
int[][] toSearch
)
{
// Check Down
if (Row + 1 < toSearch.Length)
{
if (toSearch[Row + 1][Col] ==
toSearch[Row][Col] &&
isChecked[Row + 1][Col] == false)
{
curSequence++;
isChecked[Row + 1][Col] = true;
curSequence = CheckElement
(
Row + 1,
Col,
curSequence,
toSearch
);
}
}
// Check Right
if (Col + 1 < toSearch[Row].Length)
{
if (toSearch[Row][Col + 1] ==
toSearch[Row][Col] &&
isChecked[Row][Col + 1] == false)
{
curSequence++;
isChecked[Row][Col + 1] = true;
curSequence = CheckElement
(
Row,
Col + 1,
curSequence,
toSearch
);
}
}
// Check Up
if (Row - 1 >= 0)
{
if (toSearch[Row - 1][Col] ==
toSearch[Row][Col] &&
isChecked[Row - 1][Col] == false)
{
curSequence++;
isChecked[Row - 1][Col] = true;
curSequence = CheckElement
(
Row - 1,
Col,
curSequence,
toSearch
);
}
}
// Check Left
if (Col - 1 >= 0)
{
if (toSearch[Row][Col - 1] ==
toSearch[Row][Col] &&
isChecked[Row][Col - 1] == false)
{
curSequence++;
isChecked[Row][Col - 1] = true;
curSequence = CheckElement
(
Row,
Col - 1,
curSequence,
toSearch
);
}
}
// Return crrent
// sequence length
return curSequence;
}
}
} | 30.545024 | 68 | 0.316369 | [
"MIT"
] | shopOFF/Telerik-Academy-Courses | CSharp-Part-2/C#2 Homeworks & Exams/TelerikHWCSharp2MultArrays/4.LargestAreaInMatrix/LargestAreaInMatrix.cs | 6,447 | C# |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Collections.Generic;
using BenchmarkDotNet.Configs;
namespace BenchmarkDotNet.Attributes;
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Assembly)]
internal class AspNetCoreBenchmarkAttribute : Attribute, IConfigSource
{
public AspNetCoreBenchmarkAttribute()
: this(typeof(DefaultCoreConfig))
{
}
public AspNetCoreBenchmarkAttribute(Type configType)
: this(configType, typeof(DefaultCoreValidationConfig))
{
}
public AspNetCoreBenchmarkAttribute(Type configType, Type validationConfigType)
{
ConfigTypes = new Dictionary<string, Type>()
{
{ NamedConfiguration.Default, typeof(DefaultCoreConfig) },
{ NamedConfiguration.Validation, typeof(DefaultCoreValidationConfig) },
{ NamedConfiguration.Profile, typeof(DefaultCoreProfileConfig) },
{ NamedConfiguration.Debug, typeof(DefaultCoreDebugConfig) },
{ NamedConfiguration.PerfLab, typeof(DefaultCorePerfLabConfig) },
};
if (configType != null)
{
ConfigTypes[NamedConfiguration.Default] = configType;
}
if (validationConfigType != null)
{
ConfigTypes[NamedConfiguration.Validation] = validationConfigType;
}
}
public IConfig Config
{
get
{
if (!ConfigTypes.TryGetValue(ConfigName ?? NamedConfiguration.Default, out var configType))
{
var message = $"Could not find a configuration matching {ConfigName}. " +
$"Known configurations: {string.Join(", ", ConfigTypes.Keys)}";
throw new InvalidOperationException(message);
}
return (IConfig)Activator.CreateInstance(configType, Array.Empty<object>());
}
}
public Dictionary<string, Type> ConfigTypes { get; }
public static string ConfigName { get; set; } = NamedConfiguration.Default;
public static class NamedConfiguration
{
public const string Default = "default";
public const string Validation = "validation";
public const string Profile = "profile";
public const string Debug = "debug";
public const string PerfLab = "perflab";
}
}
| 33.520548 | 103 | 0.651819 | [
"MIT"
] | 3ejki/aspnetcore | src/Shared/BenchmarkRunner/AspNetCoreBenchmarkAttribute.cs | 2,447 | C# |
using Assets.GameManagement;
using PathCreation;
using UnityEngine;
namespace Assets.MapObject.Motion
{
// Moves along a path at constant speed.
// Depending on the end of path instruction, will either loop, reverse, or stop at the end of the path.
public class PathFollower : MonoBehaviour, IPositionWard
{
public PathCreator pathCreator;
public EndOfPathInstruction endOfPathInstruction;
public float fullCycleTime; // in game segments
[Range(0, 1)] public float offset;
public Vector2 GetPosition()
{
return pathCreator.path.GetPointAtTime(GameplayController.instance.GetMapTime()/fullCycleTime + offset, endOfPathInstruction);
}
}
} | 34.666667 | 138 | 0.707418 | [
"MIT"
] | marszub/Freaky-Rocket | FreakyRocket/Assets/MapObject/Motion/PathFollower.cs | 730 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.Owin;
namespace ASP.NETWebForms.Account
{
public partial class VerifyPhoneNumber : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
var manager = Context.GetOwinContext().GetUserManager<ApplicationUserManager>();
var phonenumber = Request.QueryString["PhoneNumber"];
var code = manager.GenerateChangePhoneNumberToken(User.Identity.GetUserId(), phonenumber);
PhoneNumber.Value = phonenumber;
}
protected void Code_Click(object sender, EventArgs e)
{
if (!ModelState.IsValid)
{
ModelState.AddModelError("", "Invalid code");
return;
}
var manager = Context.GetOwinContext().GetUserManager<ApplicationUserManager>();
var signInManager = Context.GetOwinContext().Get<ApplicationSignInManager>();
var result = manager.ChangePhoneNumber(User.Identity.GetUserId(), PhoneNumber.Value, Code.Text);
if (result.Succeeded)
{
var user = manager.FindById(User.Identity.GetUserId());
if (user != null)
{
signInManager.SignIn(user, isPersistent: false, rememberBrowser: false);
Response.Redirect("/Account/Manage?m=AddPhoneNumberSuccess");
}
}
// If we got this far, something failed, redisplay form
ModelState.AddModelError("", "Failed to verify phone");
}
}
} | 35.4 | 113 | 0.614124 | [
"MIT"
] | todor-enikov/TelerikAcademy | ASP .NET Web Forms/1.Introduction to ASP.NET/1.Few Web applications/ASP.NETWebForms/Account/VerifyPhoneNumber.aspx.cs | 1,772 | C# |
using System;
using System.Collections.Generic;
using System.Maui;
using NUnit.Framework;
namespace System.Maui.Xaml.UnitTests
{
public partial class IsCompiledDefault : ContentPage
{
public IsCompiledDefault ()
{
InitializeComponent ();
}
public IsCompiledDefault (bool useCompiledXaml)
{
//this stub will be replaced at compile time
}
[TestFixture]
public class Tests
{
[TestCase (false)]
[TestCase (true)]
public void IsCompiled (bool useCompiledXaml)
{
var layout = new IsCompiledDefault (useCompiledXaml);
Assert.AreEqual (true, typeof (IsCompiledDefault).IsCompiled ());
}
}
}
} | 19.393939 | 69 | 0.714063 | [
"MIT"
] | AswinPG/maui | System.Maui.Xaml.UnitTests/IsCompiledDefault.xaml.cs | 640 | C# |
using System.Globalization;
namespace Laobian.Share.Extension;
public static class NumberExtension
{
public static string ToHuman(this int number)
{
if (number < 1000)
{
return number.ToString();
}
if (number < 10000)
{
return $"{number / 1000:F1}k";
}
return $"{number / 10000:F1}w";
}
public static string ToThousandHuman(this int number)
{
return number.ToString("N0", new CultureInfo("en-US"));
}
} | 20 | 63 | 0.565385 | [
"MIT"
] | JerryBian/blog.laobian.me | src/share/Extension/NumberExtension.cs | 522 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace rbk.mailrelay.Model
{
public class Statistics
{
public string apiKey { get; set; }
public int id { get; set; }
public DateTime startDate { get; set; }
public DateTime endDate { get; set; }
public List<string> smtpTags { get; set; }
}
public class StatisticsSpam
{
public string apiKey { get; set; }
public int offset { get; set; }
public int count { get; set; }
public int id { get; set; }
public string email { get; set; }
public DateTime startDate { get; set; }
public DateTime endDate { get; set; }
public string sortField { get; set; }
public string sortOrder { get; set; }
}
public class ResultStatistics
{
public int impressions { get; set; }
public int unique_impressions { get; set; }
public int clicks { get; set; }
public int unique_clicks { get; set; }
public int sent { get; set; }
public int bounced { get; set; }
public int reported_spam { get; set; }
public int delivered { get; set; }
public int optouts { get; set; }
public int forwarded { get; set; }
}
public class ResultsUniqueClicks
{
public DateTime date { get; set; }
public int mailing_list { get; set; }
public string email { get; set; }
public string url { get; set; }
public int link_no { get; set; }
public string browser { get; set; }
public string os { get; set; }
public string lat { get; set; }
public string lng { get; set; }
public string screen_width { get; set; }
public string screen_height { get; set; }
public string location { get; set; }
public string country { get; set; }
}
public class ResultImpressionsInfo
{
public int mailing_list { get; set; }
public DateTime date { get; set; }
public string email { get; set; }
public string browser { get; set; }
public string os { get; set; }
public string lat { get; set; }
public string lng { get; set; }
public string location { get; set; }
public string country { get; set; }
}
}
| 30.948052 | 51 | 0.576164 | [
"Apache-2.0"
] | henryoy/rbk-mailrelay | Model/Statistics.cs | 2,385 | C# |
using OpenTK;
using OpenTK.Graphics;
using SPICA.Formats;
using SPICA.Formats.CtrH3D;
using SPICA.Formats.CtrH3D.Animation;
using SPICA.Formats.CtrH3D.Texture;
using SPICA.Rendering;
using SPICA.WinForms.Formats;
using SPICA.WinForms.GUI;
using SPICA.WinForms.GUI.Animation;
using SPICA.WinForms.GUI.Viewport;
using SPICA.WinForms.Properties;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Windows.Forms;
namespace SPICA.WinForms
{
public partial class FrmMain : Form
{
#region Declarations
private Vector2 InitialMov;
private Vector3 MdlCenter;
private Vector3 Translation;
private Matrix4 Transform;
private GLControl Viewport;
private GridLines UIGrid;
private AxisLines UIAxis;
private AnimationGroup AnimGrp;
public H3D Scene;
private Renderer Renderer;
private Shader Shader;
private float Dimension;
private bool IgnoreClicks;
#endregion
#region Initialization/Termination
public FrmMain()
{
//We need to add the control here cause we need to call the constructor with Graphics Mode.
//This enables the higher precision Depth Buffer and a Stencil Buffer.
Viewport = new GLControl(new GraphicsMode(32, 24, 8), 3, 3, GraphicsContextFlags.ForwardCompatible)
{
Dock = DockStyle.Fill,
Name = "Viewport",
VSync = true
};
Viewport.Load += Viewport_Load;
Viewport.Paint += Viewport_Paint;
Viewport.MouseDown += Viewport_MouseDown;
Viewport.MouseMove += Viewport_MouseMove;
Viewport.MouseWheel += Viewport_MouseWheel;
Viewport.Resize += Viewport_Resize;
InitializeComponent();
MainContainer.Panel1.Controls.Add(Viewport);
TopMenu.Renderer = new ToolsRenderer(TopMenu.BackColor);
TopIcons.Renderer = new ToolsRenderer(TopIcons.BackColor);
SideIcons.Renderer = new ToolsRenderer(SideIcons.BackColor);
}
private void FrmMain_FormClosing(object sender, FormClosingEventArgs e)
{
Renderer.Dispose();
Shader.Dispose();
SaveSettings();
}
private void FileOpen(string[] Files, bool MergeMode)
{
if (!MergeMode)
{
Renderer.DeleteAll();
Renderer.Lights.Add(new Light()
{
Ambient = new Color4(0.1f, 0.1f, 0.1f, 1.0f),
Diffuse = new Color4(0.9f, 0.9f, 0.9f, 1.0f),
Specular0 = new Color4(0.8f, 0.8f, 0.8f, 1.0f),
Specular1 = new Color4(0.4f, 0.4f, 0.4f, 1.0f),
TwoSidedDiffuse = true,
Enabled = true
});
ResetTransforms();
Scene = FileIO.Merge(Files, Renderer);
TextureManager.Textures = Scene.Textures;
ModelsList.Bind(Scene.Models);
TexturesList.Bind(Scene.Textures);
CamerasList.Bind(Scene.Cameras);
LightsList.Bind(Scene.Lights);
SklAnimsList.Bind(Scene.SkeletalAnimations);
MatAnimsList.Bind(Scene.MaterialAnimations);
VisAnimsList.Bind(Scene.VisibilityAnimations);
CamAnimsList.Bind(Scene.CameraAnimations);
Animator.Enabled = false;
LblAnimSpeed.Text = string.Empty;
LblAnimLoopMode.Text = string.Empty;
AnimSeekBar.Value = 0;
AnimSeekBar.Maximum = 0;
AnimGrp.Frame = 0;
AnimGrp.FramesCount = 0;
if (Scene.Models.Count > 0)
{
ModelsList.Select(0);
}
else
{
UpdateTransforms();
}
}
else
{
Scene = FileIO.Merge(Files, Renderer, Scene);
}
}
private void FrmMain_DragEnter(object sender, DragEventArgs e)
{
if (e.Data.GetDataPresent(DataFormats.FileDrop))
{
e.Effect = DragDropEffects.Copy;
}
}
private void FrmMain_DragDrop(object sender, DragEventArgs e)
{
string[] Files = (string[])e.Data.GetData(DataFormats.FileDrop);
if (Files.Length > 0)
{
FileOpen(Files, ModifierKeys.HasFlag(Keys.Alt) && Scene != null);
UpdateViewport();
}
}
private void LoadSettings()
{
if (Settings.Default.RenderShowGrid) ToggleGrid();
if (Settings.Default.RenderShowAxis) ToggleAxis();
if (Settings.Default.UIShowSideMenu) ToggleSide();
}
private void SaveSettings()
{
Settings.Default.RenderShowGrid = MenuShowGrid.Checked;
Settings.Default.RenderShowAxis = MenuShowAxis.Checked;
Settings.Default.UIShowSideMenu = MenuShowSide.Checked;
Settings.Default.Save();
}
#endregion
#region Viewport events
private void Viewport_Load(object sender, EventArgs e)
{
//Note: Setting up OpenGL stuff only works after the control has loaded on the Form.
Viewport.MakeCurrent();
Renderer = new Renderer(Viewport.Width, Viewport.Height);
Renderer.SetBackgroundColor(Color.Gray);
AnimGrp = new AnimationGroup(Renderer);
Shader = new Shader();
UIGrid = new GridLines(Renderer, Shader);
UIAxis = new AxisLines(Renderer, Shader);
ResetTransforms();
UpdateTransforms();
LoadSettings();
}
private void Viewport_MouseDown(object sender, MouseEventArgs e)
{
if (!IgnoreClicks && e.Button != 0)
{
InitialMov = new Vector2(e.X, e.Y);
}
}
private void Viewport_MouseMove(object sender, MouseEventArgs e)
{
if (!IgnoreClicks && e.Button != 0)
{
if ((e.Button & MouseButtons.Left) != 0)
{
float X = (float)(((e.X - InitialMov.X) / Width) * Math.PI);
float Y = (float)(((e.Y - InitialMov.Y) / Height) * Math.PI);
Transform.Row3.Xyz -= Translation;
Transform *=
Matrix4.CreateRotationX(Y) *
Matrix4.CreateRotationY(X);
Transform.Row3.Xyz += Translation;
}
if ((e.Button & MouseButtons.Right) != 0)
{
float X = (InitialMov.X - e.X) * Dimension * 0.005f;
float Y = (InitialMov.Y - e.Y) * Dimension * 0.005f;
Vector3 Offset = new Vector3(-X, Y, 0);
Translation += Offset;
Transform *= Matrix4.CreateTranslation(Offset);
}
InitialMov = new Vector2(e.X, e.Y);
UpdateTransforms();
}
}
private void Viewport_MouseWheel(object sender, MouseEventArgs e)
{
if (e.Button != MouseButtons.Right)
{
float Step = e.Delta > 0
? Dimension * 0.025f
: -Dimension * 0.025f;
Translation.Z += Step;
Transform *= Matrix4.CreateTranslation(0, 0, Step);
UpdateTransforms();
}
}
private void Viewport_Paint(object sender, PaintEventArgs e)
{
Renderer.Clear();
UIGrid.Render();
foreach (int i in ModelsList.SelectedIndices)
{
Renderer.Models[i].Render();
}
UIAxis.Render();
Viewport.SwapBuffers();
}
private void Viewport_Resize(object sender, EventArgs e)
{
Renderer?.Resize(Viewport.Width, Viewport.Height);
UpdateViewport();
}
#endregion
#region Menu items
private void MenuOpenFile_Click(object sender, EventArgs e)
{
TBtnOpen_Click(sender, e);
}
private void MenuMergeFiles_Click(object sender, EventArgs e)
{
TBtnMerge_Click(sender, e);
}
private void MenuBatchExport_Click(object sender, EventArgs e)
{
new FrmExport().Show();
}
private void MenuShowGrid_Click(object sender, EventArgs e)
{
ToggleGrid();
}
private void MenuShowAxis_Click(object sender, EventArgs e)
{
ToggleAxis();
}
private void MenuShowSide_Click(object sender, EventArgs e)
{
ToggleSide();
}
#endregion
#region Tool buttons and Menus
private void TBtnOpen_Click(object sender, EventArgs e)
{
Open(false);
}
private void TBtnMerge_Click(object sender, EventArgs e)
{
Open(Scene != null);
}
private void TBtnSave_Click(object sender, EventArgs e)
{
Save();
}
private void TBtnShowGrid_Click(object sender, EventArgs e)
{
ToggleGrid();
}
private void TBtnShowAxis_Click(object sender, EventArgs e)
{
ToggleAxis();
}
private void TBtnShowSide_Click(object sender, EventArgs e)
{
ToggleSide();
}
private void ToggleGrid()
{
bool State = !MenuShowGrid.Checked;
MenuShowGrid.Checked = State;
TBtnShowGrid.Checked = State;
UIGrid.Visible = State;
UpdateViewport();
}
private void ToggleAxis()
{
bool State = !MenuShowAxis.Checked;
MenuShowAxis.Checked = State;
TBtnShowAxis.Checked = State;
UIAxis.Visible = State;
UpdateViewport();
}
private void ToggleSide()
{
bool State = !MenuShowSide.Checked;
MenuShowSide.Checked = State;
TBtnShowSide.Checked = State;
MainContainer.Panel2Collapsed = !State;
}
private void ToolButtonExport_Click(object sender, EventArgs e)
{
FileIO.Export(Scene, TexturesList.SelectedIndex);
}
private void Open(bool MergeMode)
{
IgnoreClicks = true;
using (OpenFileDialog OpenDlg = new OpenFileDialog())
{
OpenDlg.Filter = "All files|*.*";
OpenDlg.Multiselect = true;
if (OpenDlg.ShowDialog() == DialogResult.OK && OpenDlg.FileNames.Length > 0)
{
FileOpen(OpenDlg.FileNames, MergeMode);
}
}
//Allow app to process click from the Open dialog that goes into the Viewport.
//This avoid the model from moving after opening a file on the dialog.
//(Note: The problem only happens if the dialog is on top of the Viewport).
Application.DoEvents();
IgnoreClicks = false;
UpdateViewport();
}
private void Save()
{
FileIO.Save(Scene, new SceneState
{
ModelIndex = ModelsList.SelectedIndex,
SklAnimIndex = SklAnimsList.SelectedIndex,
MatAnimIndex = MatAnimsList.SelectedIndex
});
}
private void ResetTransforms()
{
MdlCenter = Vector3.Zero;
Dimension = 100;
Transform =
Matrix4.CreateRotationY((float)Math.PI * 0.25f) *
Matrix4.CreateRotationX((float)Math.PI * 0.25f) *
Matrix4.CreateTranslation(0, 0, -200);
}
private void UpdateTransforms()
{
Renderer.Camera.ViewMatrix = Transform;
UIAxis.Transform = Matrix4.CreateTranslation(-MdlCenter);
UpdateViewport();
}
#endregion
#region Side menu events
private void ModelsList_SelectedIndexChanged(object sender, EventArgs e)
{
if (ModelsList.SelectedIndices.Length > 0)
{
int Index = ModelsList.SelectedIndex;
BoundingBox AABB = Renderer.Models[Index].GetModelAABB();
MdlCenter = -AABB.Center;
Dimension = 1;
Dimension = Math.Max(Dimension, Math.Abs(AABB.Size.X));
Dimension = Math.Max(Dimension, Math.Abs(AABB.Size.Y));
Dimension = Math.Max(Dimension, Math.Abs(AABB.Size.Z));
Dimension *= 2;
Translation = new Vector3(0, 0, -Dimension);
Transform =
Matrix4.CreateTranslation(MdlCenter) *
Matrix4.CreateTranslation(Translation);
Renderer.Lights[0].Position.Y = AABB.Center.Y;
Renderer.Lights[0].Position.Z = Dimension;
foreach (int i in ModelsList.SelectedIndices)
{
Renderer.Models[i].UpdateUniforms();
}
UpdateTransforms();
}
}
private void TexturesList_SelectedIndexChanged(object sender, EventArgs e)
{
int Index = TexturesList.SelectedIndex;
if (Index != -1)
{
TexturePreview.Image = TextureManager.GetTexture(Index);
TextureInfo.Text = string.Format("{0} {1}x{2} {3}",
Scene.Textures[Index].MipmapSize,
Scene.Textures[Index].Width,
Scene.Textures[Index].Height,
Scene.Textures[Index].Format);
}
else
{
TexturePreview.Image = null;
TextureInfo.Text = string.Empty;
}
}
private void CamerasList_Selected(object sender, EventArgs e)
{
if (CamerasList.SelectedIndex != -1)
{
Renderer.Camera.Set(Scene.Cameras[CamerasList.SelectedIndex]);
Transform = Renderer.Camera.ViewMatrix;
}
else
{
Renderer.Camera.Set(null);
ResetTransforms();
}
UpdateViewport();
}
private void LightsList_Selected(object sender, EventArgs e)
{
if (LightsList.SelectedIndices.Length > 0)
{
Renderer.Lights[0].Enabled = false;
}
for (int i = 1; i < Renderer.Lights.Count; i++)
{
Renderer.Lights[i].Enabled = LightsList.SelectedIndices.Contains(i - 1);
}
Renderer.UpdateAllUniforms();
UpdateViewport();
}
private void SklAnimsList_Selected(object sender, EventArgs e)
{
SetAnimation(SklAnimsList.SelectedIndices, Scene.SkeletalAnimations, AnimationType.Skeletal);
}
private void MatAnimsList_Selected(object sender, EventArgs e)
{
SetAnimation(MatAnimsList.SelectedIndices, Scene.MaterialAnimations);
}
private void VisAnimsList_Selected(object sender, EventArgs e)
{
SetAnimation(VisAnimsList.SelectedIndices, Scene.VisibilityAnimations, AnimationType.Visibility);
}
private void CamAnimsList_Selected(object sender, EventArgs e)
{
SetAnimation(CamAnimsList.SelectedIndex, Scene.CameraAnimations, AnimationType.Camera);
}
#endregion
#region Animation related + playback controls
private void Animator_Tick(object sender, EventArgs e)
{
AnimGrp.AdvanceFrame();
AnimSeekBar.Value = AnimGrp.Frame;
UpdateAnimationTransforms();
Viewport.Invalidate();
}
private void UpdateAnimationTransforms()
{
foreach (int i in ModelsList.SelectedIndices)
{
Renderer.Models[i].UpdateAnimationTransforms();
}
if (CamAnimsList.SelectedIndex != -1)
{
Renderer.Camera.RecalculateMatrices();
}
}
private void SetAnimation(int Index, H3DDict<H3DAnimation> SrcAnims, AnimationType Type)
{
if (Index != -1)
{
SetAnimation(new int[] { Index }, SrcAnims, Type);
}
else
{
SetAnimation(new int[0], SrcAnims, Type);
}
}
private void SetAnimation(int[] Indices, H3DDict<H3DAnimation> SrcAnims, AnimationType Type)
{
List<H3DAnimation> Animations = new List<H3DAnimation>(Indices.Length);
foreach (int i in Indices)
{
Animations.Add(SrcAnims[i]);
}
if (Type == AnimationType.Skeletal && Indices.Length == 1)
{
foreach (H3DAnimation SklAnim in Animations)
{
int MIndex = Scene.MaterialAnimations.Find(SklAnim.Name);
if (MIndex != -1 && !MatAnimsList.SelectedIndices.Contains(MIndex))
{
MatAnimsList.Select(MIndex);
}
}
}
AnimGrp.Frame = 0;
AnimGrp.SetAnimations(Animations, Type);
AnimGrp.UpdateState();
AnimSeekBar.Value = AnimGrp.Frame;
AnimSeekBar.Maximum = AnimGrp.FramesCount;
UpdateAnimationTransforms();
UpdateAnimLbls();
UpdateViewport();
}
private void SetAnimation(int[] Indices, H3DDict<H3DMaterialAnim> SrcAnims)
{
List<H3DAnimation> Animations = new List<H3DAnimation>(Indices.Length);
foreach (int i in Indices)
{
Animations.Add(SrcAnims[i]);
}
AnimGrp.Frame = 0;
AnimGrp.SetAnimations(Animations, AnimationType.Material);
AnimGrp.UpdateState();
AnimSeekBar.Value = AnimGrp.Frame;
AnimSeekBar.Maximum = AnimGrp.FramesCount;
UpdateAnimationTransforms();
UpdateAnimLbls();
UpdateViewport();
}
private void UpdateAnimLbls()
{
LblAnimSpeed.Text = $"{Math.Abs(AnimGrp.Step).ToString("N2")}x";
LblAnimLoopMode.Text = AnimGrp.IsLooping
? "LOOP"
: "1 GO";
}
private void EnableAnimator()
{
Animator.Enabled = true;
UpdateAnimLbls();
}
private void DisableAnimator()
{
Animator.Enabled = false;
UpdateViewport();
}
private void UpdateViewport()
{
if (!Animator.Enabled)
{
Viewport.Invalidate();
}
}
private void AnimButtonPlayBackward_Click(object sender, EventArgs e)
{
AnimGrp.Play(-Math.Abs(AnimGrp.Step));
EnableAnimator();
}
private void AnimButtonPlayForward_Click(object sender, EventArgs e)
{
AnimGrp.Play(Math.Abs(AnimGrp.Step));
EnableAnimator();
}
private void AnimButtonPause_Click(object sender, EventArgs e)
{
AnimGrp.Pause();
DisableAnimator();
}
private void AnimButtonStop_Click(object sender, EventArgs e)
{
AnimGrp.Stop();
DisableAnimator();
UpdateAnimationTransforms();
AnimSeekBar.Value = 0;
}
private void AnimButtonSlowDown_Click(object sender, EventArgs e)
{
AnimGrp.SlowDown();
UpdateAnimLbls();
}
private void AnimButtonSpeedUp_Click(object sender, EventArgs e)
{
AnimGrp.SpeedUp();
UpdateAnimLbls();
}
private void AnimButtonPrev_Click(object sender, EventArgs e)
{
if (SklAnimsList.SelectedIndex != -1)
SklAnimsList.SelectUp();
}
private void AnimButtonNext_Click(object sender, EventArgs e)
{
if (SklAnimsList.SelectedIndex != -1)
SklAnimsList.SelectDown();
}
private void AnimSeekBar_Seek(object sender, EventArgs e)
{
AnimGrp.Pause();
AnimGrp.Frame = AnimSeekBar.Value;
UpdateAnimationTransforms();
UpdateViewport();
}
private void AnimSeekBar_MouseUp(object sender, MouseEventArgs e)
{
AnimGrp.Continue();
}
#endregion
private void ToolButtonRemove_Click(object sender, EventArgs e)
{
if (ModelsList.Focused)
{
if (ModelsList.SelectedIndex >= 0)
{
Scene.Models.Remove(ModelsList.SelectedIndex);
}
}
else if (TexturesList.Focused)
{
if (TexturesList.SelectedIndex >= 0)
{
Scene.Textures.Remove(TexturesList.SelectedIndex);
}
}
else if (CamerasList.Focused)
{
if (TexturesList.SelectedIndex >= 0)
{
Scene.Cameras.Remove(CamerasList.SelectedIndex);
}
}
else if (LightsList.Focused)
{
if (LightsList.SelectedIndex >= 0)
{
Scene.Lights.Remove(LightsList.SelectedIndex);
}
}
else if (SklAnimsList.Focused)
{
if (SklAnimsList.SelectedIndex >= 0)
{
Scene.SkeletalAnimations.Remove(SklAnimsList.SelectedIndex);
}
}
else if (MatAnimsList.Focused)
{
if (MatAnimsList.SelectedIndex >= 0)
{
Scene.MaterialAnimations.Remove(MatAnimsList.SelectedIndex);
}
}
else if (VisAnimsList.Focused)
{
if (VisAnimsList.SelectedIndex >= 0)
{
Scene.VisibilityAnimations.Remove(VisAnimsList.SelectedIndex);
}
}
else if (CamAnimsList.Focused)
{
if (CamAnimsList.SelectedIndex >= 0)
{
Scene.CameraAnimations.Remove(CamAnimsList.SelectedIndex);
}
}
}
private void ToolButtonImport_Click(object sender, EventArgs e)
{
if (TexturesList.Focused)
{
if (TexturesList.SelectedIndex != -1)
{
IgnoreClicks = true;
using (OpenFileDialog OpenDlg = new OpenFileDialog())
{
OpenDlg.Filter = "Portable Network Graphics|*.png";
OpenDlg.Multiselect = false;
if (OpenDlg.ShowDialog() == DialogResult.OK && OpenDlg.FileNames.Length > 0)
{
H3DTexture OriginTex = Scene.Textures[TexturesList.SelectedIndex];
H3DTexture Tex = new H3DTexture(OpenDlg.FileName, true, OriginTex.Format);
Tex.Name = OriginTex.Name;
Scene.Textures[TexturesList.SelectedIndex] = Tex;
TextureManager.FlushCache();
TexturesList_SelectedIndexChanged(null, null);
Renderer.Merge(Scene.Textures);
}
}
Application.DoEvents();
IgnoreClicks = false;
}
}
}
}
}
| 29.478002 | 111 | 0.51321 | [
"Unlicense"
] | ecnoid/SPICA | SPICA.WinForms/FrmMain.cs | 24,791 | C# |
/*
* Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the iot-2015-05-28.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.IoT.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.IoT.Model.Internal.MarshallTransformations
{
/// <summary>
/// ReplaceTopicRule Request Marshaller
/// </summary>
public class ReplaceTopicRuleRequestMarshaller : IMarshaller<IRequest, ReplaceTopicRuleRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((ReplaceTopicRuleRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(ReplaceTopicRuleRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.IoT");
request.Headers["Content-Type"] = "application/x-amz-json-";
request.HttpMethod = "PATCH";
string uriResourcePath = "/rules/{ruleName}";
if (!publicRequest.IsSetRuleName())
throw new AmazonIoTException("Request object does not have required field RuleName set");
uriResourcePath = uriResourcePath.Replace("{ruleName}", StringUtils.FromStringWithSlashEncoding(publicRequest.RuleName));
request.ResourcePath = uriResourcePath;
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
var marshaller = TopicRulePayloadMarshaller.Instance;
marshaller.Marshall(publicRequest.TopicRulePayload, context);
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static ReplaceTopicRuleRequestMarshaller _instance = new ReplaceTopicRuleRequestMarshaller();
internal static ReplaceTopicRuleRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ReplaceTopicRuleRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 36.352941 | 147 | 0.649137 | [
"Apache-2.0"
] | DalavanCloud/aws-sdk-net | sdk/src/Services/IoT/Generated/Model/Internal/MarshallTransformations/ReplaceTopicRuleRequestMarshaller.cs | 3,708 | C# |
namespace RecipeBook.Application.Entities
{
public class ProfileCommand
{
public string Name { get; set; }
public string Description { get; set; }
public string Login { get; set; }
public string OldLogin { get; set; }
public string Password { get; set; }
}
}
| 26 | 47 | 0.605769 | [
"MIT"
] | Carapacik/RecipeBook | RecipeBook.Application/Entities/ProfileCommand.cs | 314 | C# |
using System.IO;
using System.Runtime.Serialization;
using GameEstate.Red.Formats.Red.CR2W.Reflection;
using FastMember;
using static GameEstate.Red.Formats.Red.Records.Enums;
namespace GameEstate.Red.Formats.Red.Types
{
[DataContract(Namespace = "")]
[REDMeta]
public class CBTTaskStopBeingScaredDef : IBehTreeReactionTaskDefinition
{
public CBTTaskStopBeingScaredDef(CR2WFile cr2w, CVariable parent, string name) : base(cr2w, parent, name){ }
public static new CVariable Create(CR2WFile cr2w, CVariable parent, string name) => new CBTTaskStopBeingScaredDef(cr2w, parent, name);
public override void Read(BinaryReader file, uint size) => base.Read(file, size);
public override void Write(BinaryWriter file) => base.Write(file);
}
} | 33.608696 | 137 | 0.759379 | [
"MIT"
] | bclnet/GameEstate | src/Estates/Red/GameEstate.Red.Format/Red/W3/RTTIConvert/CBTTaskStopBeingScaredDef.cs | 773 | C# |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("danielCherrin_CarRentalApp")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("danielCherrin_CarRentalApp")]
[assembly: AssemblyCopyright("Copyright © 2018")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("1cb431af-64fd-4bc9-b659-049ade943661")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
| 38.378378 | 84 | 0.752817 | [
"MIT"
] | ChannelPixel/CarHireDatabaseAppointmentApp | danielCherrin_CarHireApp/danielCherrin_CarRentalApp/danielCherrin_CarRentalApp/Properties/AssemblyInfo.cs | 1,423 | C# |
using System;
using System.IO;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
using Windows.Storage;
using Windows.Storage.Streams;
using Windows.UI;
using Microsoft.Graphics.Canvas;
using Microsoft.Graphics.Canvas.Brushes;
using Microsoft.Graphics.Canvas.Text;
namespace BitStamp.Model
{
/// <summary>
/// 处理图片
/// </summary>
public class HemdrisJelnunabisImage
{
public async Task WaterBerbouPelJicayweeno(string str)
{
if (ImageFile == ImageEnum.Gif)
{
return;
}
var duvDbecdgiu = CanvasBitmap;
using (var canvasRenderTarget = new CanvasRenderTarget(duvDbecdgiu, duvDbecdgiu.Size))
{
using (var dc = canvasRenderTarget.CreateDrawingSession())
{
dc.DrawImage(duvDbecdgiu);
if (!string.IsNullOrEmpty(str))
{
using (var canvasTextFormat = new CanvasTextFormat()
{
FontSize = 15f,
WordWrapping = CanvasWordWrapping.NoWrap
})
using (var canvasTextLayout =
new CanvasTextLayout(canvasRenderTarget, str, canvasTextFormat, 0, 0))
{
var kjrjuxzaKrbgwk = canvasTextLayout.LayoutBounds;
if (
kjrjuxzaKrbgwk.Width < duvDbecdgiu.Size.Width
&& kjrjuxzaKrbgwk.Height < duvDbecdgiu.Size.Height
)
{
var width = duvDbecdgiu.Size.Width - kjrjuxzaKrbgwk.Width;
var height = duvDbecdgiu.Size.Height - kjrjuxzaKrbgwk.Height;
var canvasGradientStop = new CanvasGradientStop[2];
canvasGradientStop[0] = new CanvasGradientStop()
{
Position = 0,
Color = Colors.White
};
canvasGradientStop[1] = new CanvasGradientStop()
{
Position = 1,
Color = Colors.Black
};
var canvasLinearGradientBrush =
new CanvasLinearGradientBrush(CanvasDevice, canvasGradientStop)
{
StartPoint = new Vector2(0, (float) height / 2),
EndPoint = new Vector2(0, (float) height / 2 + (float) kjrjuxzaKrbgwk.Height)
};
dc.DrawText(str,
new Vector2((float) (width / 2),
(float) height / 2),
canvasLinearGradientBrush, canvasTextFormat);
}
}
}
}
var file = await KuaxShft();
using (var stream = await file.OpenAsync(FileAccessMode.ReadWrite))
{
await canvasRenderTarget.SaveAsync(stream,
ImageEnumToCanvasBitmapFileFormat(SaveImage));
}
ImageFile = SaveImage;
File = file;
}
}
public StorageFile File { get; set; }
/// <summary>
/// 设置图片
/// </summary>
/// <param name="file"></param>
public async Task SetImage(StorageFile file)
{
File = file;
CanvasBitmap?.Dispose();
ImageFile = GetFileImage(file);
if (ImageFile != ImageEnum.Gif)
{
CanvasBitmap = await CanvasBitmap.LoadAsync(CanvasDevice, await file.OpenAsync(FileAccessMode.Read));
}
Upload = true;
}
/// <summary>
/// 设置图片
/// </summary>
/// <param name="stream"></param>
/// <returns></returns>
public async Task SetImage(IRandomAccessStream stream)
{
CanvasBitmap?.Dispose();
CanvasBitmap = await CanvasBitmap.LoadAsync(CanvasDevice, stream);
await WaterBerbouPelJicayweeno("");
Upload = true;
}
/// <summary>
/// 是否支持上传
/// </summary>
public bool Upload { get; set; }
private CanvasDevice CanvasDevice { get; } = new CanvasDevice();
/// <summary>
/// 图片文件格式
/// </summary>
public ImageEnum ImageFile { get; set; }
public StorageFolder StDbvedbwpHxxz { get; set; }
/// <summary>
/// 保存文件
/// </summary>
private ImageEnum SaveImage { get; } = ImageEnum.Jpg;
private CanvasBitmap CanvasBitmap { set; get; }
private ImageEnum GetFileImage(StorageFile file)
{
if (Enum.TryParse(file.FileType.Substring(1), true, out ImageEnum value))
{
return value;
}
return ImageEnum.Jpg;
}
private static string ImageEnumToBowsoCerepa(ImageEnum image)
{
switch (image)
{
case ImageEnum.Png:
return ".png";
case ImageEnum.Jpg:
return ".jpg";
case ImageEnum.Gif:
return ".gif";
default:
throw new ArgumentOutOfRangeException(nameof(image), image, null);
}
}
private static CanvasBitmapFileFormat ImageEnumToCanvasBitmapFileFormat(ImageEnum image)
{
switch (image)
{
case ImageEnum.Png:
return CanvasBitmapFileFormat.Png;
case ImageEnum.Jpg:
return CanvasBitmapFileFormat.Jpeg;
case ImageEnum.Gif:
return CanvasBitmapFileFormat.Gif;
default:
throw new ArgumentOutOfRangeException(nameof(image), image, null);
}
}
private async Task<StorageFile> KuaxShft()
{
var tcnkvprzTxe = new StringBuilder();
var sasTvhqc = DateTime.Now;
tcnkvprzTxe.Append(sasTvhqc.Year.ToString() + sasTvhqc.Month.ToString() + sasTvhqc.Day.ToString() +
sasTvhqc.Hour.ToString() + sasTvhqc.Minute.ToString() + sasTvhqc.Second.ToString() +
ran.Next(1000).ToString() + ran.Next(10).ToString());
tcnkvprzTxe.Append(ImageEnumToBowsoCerepa(SaveImage));
StorageFile file;
try
{
file = await StDbvedbwpHxxz.CreateFileAsync(tcnkvprzTxe.ToString());
}
catch (FileNotFoundException)
{
StDbvedbwpHxxz = ApplicationData.Current.TemporaryFolder;
file = await StDbvedbwpHxxz.CreateFileAsync(tcnkvprzTxe.ToString());
}
return file;
}
private Random ran = new Random();
}
public enum ImageEnum
{
Png = 0,
Jpg = 2,
Gif = 1,
}
} | 33.548673 | 117 | 0.47072 | [
"MIT"
] | JTOne123/UWP | uwp/control/BitStamp/BitStamp/Model/HemdrisJelnunabisImage.cs | 7,640 | C# |
using Suls.Data;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
namespace Suls.Services
{
public class UsersService : IUsersService
{
private readonly ApplicationDbContext db;
public UsersService(ApplicationDbContext db)
{
this.db = db;
}
public void CreateUser(string username, string email, string password)
{
var user = new User
{
Email = email,
Username = username,
Password = ComputeHash(password),
};
this.db.Users.Add(user);
this.db.SaveChanges();
}
public string GetUserId(string username, string password)
{
var passwordHash = ComputeHash(password);
var user = this.db.Users.FirstOrDefault(x => x.Username == username && x.Password == passwordHash);
return user?.Id;
}
public bool IsEmailAvailable(string email)
{
return !this.db.Users.Any(x => x.Email == email);
}
public bool IsUsernameAvailable(string username)
{
return !this.db.Users.Any(x => x.Username == username);
}
private static string ComputeHash(string input)
{
var bytes = Encoding.UTF8.GetBytes(input);
using var hash = SHA512.Create();
var hashedInputBytes = hash.ComputeHash(bytes);
// Convert to text
// StringBuilder Capacity is 128, because 512 bits / 8 bits in byte * 2 symbols for byte
var hashedInputStringBuilder = new StringBuilder(128);
foreach (var b in hashedInputBytes)
hashedInputStringBuilder.Append(b.ToString("X2"));
return hashedInputStringBuilder.ToString();
}
}
} | 31.355932 | 111 | 0.574595 | [
"MIT"
] | tonchevaAleksandra/C-Sharp-Web-Development-SoftUni-Problems | C# Web Basic/SUS September 2020 Session/Suls/Services/UsersService.cs | 1,852 | C# |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
using System.Collections.Generic;
using Aliyun.Acs.Core;
namespace Aliyun.Acs.Emr.Model.V20160408
{
public class UpdateLibraryInstallTaskStatusResponse : AcsResponse
{
private string requestId;
private bool? data;
public string RequestId
{
get
{
return requestId;
}
set
{
requestId = value;
}
}
public bool? Data
{
get
{
return data;
}
set
{
data = value;
}
}
}
}
| 22.508772 | 67 | 0.686672 | [
"Apache-2.0"
] | AxiosCros/aliyun-openapi-net-sdk | aliyun-net-sdk-emr/Emr/Model/V20160408/UpdateLibraryInstallTaskStatusResponse.cs | 1,283 | C# |
//
// SecPolicy.cs: Implements the managed SecPolicy wrapper.
//
// Authors:
// Sebastien Pouliot <sebastien@xamarin.com>
//
// Copyright 2013-2014 Xamarin Inc.
//
using System;
using System.Runtime.InteropServices;
using XamCore.ObjCRuntime;
using XamCore.CoreFoundation;
using XamCore.Foundation;
namespace XamCore.Security {
// untyped enum in Security.framework/Headers/SecPolicy.h but the API use CFOptionFlags
// which is defined as in CFBase.h (do not trust Apple web documentation)
[iOS (7,0)]
[Flags]
[Native]
public enum SecRevocation : nuint_compat_int {
None,
OCSPMethod = 1,
CRLMethod = 2,
PreferCRL = 4,
RequirePositiveResponse = 8,
NetworkAccessDisabled = 16,
UseAnyAvailableMethod = OCSPMethod | CRLMethod
}
public partial class SecPolicy {
[iOS (7,0)]
[DllImport (Constants.SecurityLibrary)]
extern static IntPtr /* __nullable CFDictionaryRef */ SecPolicyCopyProperties (IntPtr /* SecPolicyRef */ policyRef);
[iOS (7,0)]
public NSDictionary GetProperties ()
{
var dict = SecPolicyCopyProperties (Handle);
return Runtime.GetNSObject<NSDictionary> (dict, true);
}
[Mac (10,9)]
[DllImport (Constants.SecurityLibrary)]
extern static IntPtr /* __nullable SecPolicyRef */ SecPolicyCreateRevocation (/* CFOptionFlags */ nuint revocationFlags);
[Mac (10,9)][iOS (7,0)]
static public SecPolicy CreateRevocationPolicy (SecRevocation revocationFlags)
{
var policy = SecPolicyCreateRevocation ((nuint)(ulong) revocationFlags);
return policy == IntPtr.Zero ? null : new SecPolicy (policy, true);
}
[Mac (10,9)][iOS (7,0)]
[DllImport (Constants.SecurityLibrary)]
extern static IntPtr /* __nullable SecPolicyRef */ SecPolicyCreateWithProperties (IntPtr /* CFTypeRef */ policyIdentifier, IntPtr /* CFDictionaryRef */ properties);
[Mac (10,9)][iOS (7,0)]
static public SecPolicy CreatePolicy (NSString policyIdentifier, NSDictionary properties)
{
if (policyIdentifier == null)
throw new ArgumentNullException ("policyIdentifier");
IntPtr dh = properties == null ? IntPtr.Zero : properties.Handle;
// note: only accept known OIDs or return null (unit test will alert us if that change, FIXME in Apple code)
// see: https://github.com/Apple-FOSS-Mirror/libsecurity_keychain/blob/master/lib/SecPolicy.cpp#L245
IntPtr ph = SecPolicyCreateWithProperties (policyIdentifier.Handle, dh);
if (ph == IntPtr.Zero)
throw new ArgumentException ("Unknown policyIdentifier");
return new SecPolicy (ph, true);
}
}
} | 33.157895 | 166 | 0.734127 | [
"BSD-3-Clause"
] | Acidburn0zzz/xamarin-macios | src/Security/SecPolicy.cs | 2,520 | C# |
using me.cqp.luohuaming.BH3Scanner.Tool.IniConfig.Attribute;
using me.cqp.luohuaming.BH3Scanner.Tool.IniConfig.Linq;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Reflection.Emit;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Runtime.InteropServices;
namespace me.cqp.luohuaming.BH3Scanner.Tool.IniConfig
{
/// <summary>
/// 配置项 (Ini) 文件的操作类
/// </summary>
public class IniConfig
{
#region --字段--
private IObject _object;
private Encoding _encoding;
private static readonly Regex[] Regices = new Regex[]
{
new Regex(@"^\[(.+)\]", RegexOptions.Compiled), //匹配 节
new Regex(@"^([^\r\n=]+)=((?:[^\r\n]+)?)",RegexOptions.Compiled), //匹配 键值对
new Regex(@"^;(?:[\s\S]*)", RegexOptions.Compiled) //匹配 注释
};
#endregion
#region --属性--
/// <summary>
/// 获取当前实例持有的 <see cref="IObject"/>
/// </summary>
public IObject Object
{
get { return this._object; }
set
{
this._object = value;
}
}
/// <summary>
/// 获取或设置当前实例读取或写入文件时使用的编码格式
/// </summary>
public Encoding Encoding
{
get { return this._encoding; }
set { this._encoding = value; }
}
#endregion
#region --构造函数--
/// <summary>
/// 初始化 <see cref="IniConfig"/> 类的新实例, 并设置文件位置和默认的文件编码
/// </summary>
/// <param name="filePath"><see cref="IniConfig"/> 使用的文件位置</param>
public IniConfig (string filePath)
: this (filePath, null)
{ }
/// <summary>
/// 初始化 <see cref="IniConfig"/> 类的新实例, 并设置文件位置和文件编码
/// </summary>
/// <param name="filePath"><see cref="IniConfig"/> 使用的文件位置</param>
/// <param name="encoding"><see cref="IniConfig"/> 使用的文件编码</param>
public IniConfig (string filePath, Encoding encoding)
{
this.InitializeIni (filePath, encoding);
}
/// <summary>
/// 初始化 <see cref="IniConfig"/> 类的新实例, 该实例持有一个 <see cref="IObject"/>
/// </summary>
/// <param name="obj"><see cref="IniConfig"/> 使用的 Ini 对象</param>
public IniConfig (IObject obj)
: this (obj, null)
{ }
/// <summary>
/// 初始化 <see cref="IniConfig"/> 类的新实例, 该实例持有一个 <see cref="IObject"/>
/// </summary>
/// <param name="obj"><see cref="IniConfig"/> 使用的 Ini 对象</param>
/// <param name="encoding"><see cref="IniConfig"/> 使用的文件编码</param>
public IniConfig (IObject obj, Encoding encoding)
{
if (obj == null)
{
throw new ArgumentNullException ("obj");
}
this.InitializeIni (obj.FileName, encoding);
foreach (ISection item in obj)
{
this._object.Add (item);
}
}
#endregion
#region --公开方法--
/// <summary>
/// 从文件中读取配置项 (Ini) 实例, 重新加载则会清空当前实例
/// </summary>
/// <returns>返回读取的结果, 若成功则为 <see langword="true"/> 否则为 <see langword="false"/></returns>
public bool Load ()
{
this._object.Clear ();
try
{
using (TextReader textReader = new StreamReader (this._object.FileName, this._encoding))
{
IniConfig.ParseIni (this._object, textReader);
}
return true;
}
catch
{
return false;
}
}
/// <summary>
/// 将当前修改的配置项 (Ini) 实例, 覆盖式写入文件
/// </summary>
/// <returns>返回读取的结果, 若成功则为 <see langword="true"/> 否则为 <see langword="false"/></returns>
public bool Save ()
{
try
{
using (TextWriter textWriter = new StreamWriter (this._object.FileName, false, this._encoding))
{
textWriter.Write (this._object.ToString ());
return true;
}
}
catch { return false; }
}
/// <summary>
/// 从持有的 <see cref="IObject"/> 中移除所有项
/// </summary>
public void Clear ()
{
this._object.Clear ();
}
/// <summary>
/// 从持有的 <see cref="IObject"/> 中移除指定名称的 <see cref="ISection"/>
/// </summary>
/// <param name="sectionKey">要移除的元素的键</param>
public void Remove (string sectionKey)
{
this._object.Remove (sectionKey);
}
/// <summary>
/// 向 <see cref="IniConfig"/> 维护的 <see cref="IObject"/> 中设置一个对象并序列化成 <see cref="ISection"/>, 若存在重复节名的对象将会覆盖整个节
/// </summary>
/// <param name="obj">用作要添加的元素的值的对象</param>
/// <exception cref="ArgumentNullException">obj 为 null</exception>
public void SetObject (object obj)
{
if (obj == null)
{
throw new ArgumentNullException ("obj");
}
Type tType = obj.GetType ();
// 获取节点名称
string key = string.Empty;
IniSectionAttribute sectionAttribute = tType.GetCustomAttribute<IniSectionAttribute> ();
if (sectionAttribute != null)
{
key = sectionAttribute.SectionName;
}
else
{
key = tType.Name;
}
this.SetObject (key, obj);
}
/// <summary>
/// 向 <see cref="IniConfig"/> 维护的 <see cref="IObject"/> 中设置一个对象并序列化成指定节名的 <see cref="ISection"/>, 若节名已存在将会覆盖整个节
/// </summary>
/// <param name="sectionKey">用作要添加的元素的键的对象</param>
/// <param name="obj">用作要添加的元素的值的对象</param>
/// <exception cref="ArgumentException">sectionKey 为空字符串或为 <see langword="null"/></exception>
/// <exception cref="ArgumentNullException">obj 为 null</exception>
public void SetObject (string sectionKey, object obj)
{
if (string.IsNullOrEmpty (sectionKey))
{
throw new ArgumentException ("sectionKey 不允许为空. 原因: obj 不能设置到为未命名的节点", "sectoinKey");
}
if (obj == null)
{
throw new ArgumentNullException ("obj");
}
if (!this._object.ContainsKey (sectionKey)) // 如果不存在这个名称
{
this._object.Add (new ISection (sectionKey));
}
// 获取节对象
ISection section = this._object[sectionKey];
if (section.Count > 0)
{
section.Clear ();
}
Type tType = obj.GetType ();
PropertyInfo[] tProperties = tType.GetProperties (BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance);
foreach (PropertyInfo property in tProperties)
{
// 获取属性是否有标记 KeyName
IniKeyAttribute keyAttribute = property.GetCustomAttribute<IniKeyAttribute> ();
string key = string.Empty;
if (keyAttribute != null)
{
key = keyAttribute.KeyName;
}
else
{
key = property.Name;
}
// 判断 Key 重复
if (section.ContainsKey (key))
{
throw new ArgumentException ("序列化的对象内部存在一个或多个重复的 Key, 这个异常可能由于属性名和特性引起.", "obj");
}
// 获取只有0个参数的 Get 方法 (排除索引器)
MethodInfo method = property.GetGetMethod (true);
if (method.GetParameters ().Count () == 0)
{
section.Add (key, new IValue (method.Invoke (obj, null)));
}
}
}
/// <summary>
/// 从 <see cref="IniConfig"/> 维护的 <see cref="IObject"/> 中获取一个 <see cref="ISection"/> 反序列化成指定类型的对象.
/// </summary>
/// <typeparam name="T">用作转换目标的元素类型</typeparam>
/// <exception cref="ArgumentNullException">t 为 null</exception>
/// <exception cref="ArgumentException">t 不是 <see cref="RuntimeType"/>。 或 t 是开放式泛型类型(即,<see cref="Type.ContainsGenericParameters"/> 属性将返回 <see langword="true"/>)</exception>
/// <exception cref="NotSupportedException">t 不能为 <see cref="TypeBuilder"/>。 或 不支持创建 <see cref="TypedReference"/>、<see cref="ArgIterator"/>、<see cref="Void"/>和 <see cref="RuntimeArgumentHandle"/> 类型,或者这些类型的数组。 或 包含 t 的程序集是一个用 <see cref="AssemblyBuilderAccess.Save"/> 创建的动态程序集</exception>
/// <exception cref="TargetInvocationException">正在被调用的构造函数引发了一个异常</exception>
/// <exception cref="MethodAccessException">调用方没有权限调用此构造函数</exception>
/// <exception cref="MemberAccessException">无法创建抽象类的实例,或者此成员是使用晚期绑定机制调用的</exception>
/// <exception cref="InvalidComObjectException">未通过 Overload:<see cref="Type.GetTypeFromProgID"/> 或 Overload:<see cref="Type.GetTypeFromCLSID"/> 获取 COM 类型</exception>
/// <exception cref="COMException">t 是一个 COM 对象,但用于获取类型的类标识符无效,或标识的类未注册</exception>
/// <exception cref="TypeLoadException">t 不是有效类型</exception>
/// <exception cref="TargetException">尝试调用一个不存在的属性</exception>
/// <returns>指定的对象实例</returns>
public T GetObject<T> ()
{
return (T)this.GetObject (typeof (T));
}
/// <summary>
/// 从 <see cref="IniConfig"/> 维护的 <see cref="IObject"/> 中获取一个指定节名的 <see cref="ISection"/> 反序列化成指定类型的对象
/// </summary>
/// <typeparam name="T">用作转换目标的元素类型</typeparam>
/// <param name="sectionKey">用作要获取的元素的键的对象</param>
/// <exception cref="ArgumentNullException">t 为 null</exception>
/// <exception cref="ArgumentException">sectionKey 未能匹配到指定节点 或 t 不是 <see cref="RuntimeType"/>。 或 t 是开放式泛型类型(即,<see cref="Type.ContainsGenericParameters"/> 属性将返回 <see langword="true"/>)</exception>
/// <exception cref="NotSupportedException">t 不能为 <see cref="TypeBuilder"/>。 或 不支持创建 <see cref="TypedReference"/>、<see cref="ArgIterator"/>、<see cref="Void"/>和 <see cref="RuntimeArgumentHandle"/> 类型,或者这些类型的数组。 或 包含 t 的程序集是一个用 <see cref="AssemblyBuilderAccess.Save"/> 创建的动态程序集</exception>
/// <exception cref="TargetInvocationException">正在被调用的构造函数引发了一个异常</exception>
/// <exception cref="MethodAccessException">调用方没有权限调用此构造函数</exception>
/// <exception cref="MemberAccessException">无法创建抽象类的实例,或者此成员是使用晚期绑定机制调用的</exception>
/// <exception cref="InvalidComObjectException">未通过 Overload:<see cref="Type.GetTypeFromProgID"/> 或 Overload:<see cref="Type.GetTypeFromCLSID"/> 获取 COM 类型</exception>
/// <exception cref="COMException">t 是一个 COM 对象,但用于获取类型的类标识符无效,或标识的类未注册</exception>
/// <exception cref="TypeLoadException">t 不是有效类型</exception>
/// <exception cref="TargetException">尝试调用一个不存在的属性</exception>
/// <returns>指定的对象实例</returns>
public T GetObject<T> (string sectionKey)
{
return (T)this.GetObject (sectionKey, typeof (T));
}
/// <summary>
/// 从 <see cref="IniConfig"/> 维护的 <see cref="IObject"/> 中获取一个 <see cref="ISection"/> 反序列化成指定类型的对象.
/// </summary>
/// <param name="t">用作要转换目标对象的类型的对象, 同时获取的节名称由这个类型的名称或由标记的 <see cref="IniSectionAttribute"/> 特性决定</param>
/// <exception cref="ArgumentNullException">t 为 null</exception>
/// <exception cref="ArgumentException">t 不是 <see cref="RuntimeType"/>。 或 t 是开放式泛型类型(即,<see cref="Type.ContainsGenericParameters"/> 属性将返回 <see langword="true"/>)</exception>
/// <exception cref="NotSupportedException">t 不能为 <see cref="TypeBuilder"/>。 或 不支持创建 <see cref="TypedReference"/>、<see cref="ArgIterator"/>、<see cref="Void"/>和 <see cref="RuntimeArgumentHandle"/> 类型,或者这些类型的数组。 或 包含 t 的程序集是一个用 <see cref="AssemblyBuilderAccess.Save"/> 创建的动态程序集</exception>
/// <exception cref="TargetInvocationException">正在被调用的构造函数引发了一个异常</exception>
/// <exception cref="MethodAccessException">调用方没有权限调用此构造函数</exception>
/// <exception cref="MemberAccessException">无法创建抽象类的实例,或者此成员是使用晚期绑定机制调用的</exception>
/// <exception cref="InvalidComObjectException">未通过 Overload:<see cref="Type.GetTypeFromProgID"/> 或 Overload:<see cref="Type.GetTypeFromCLSID"/> 获取 COM 类型</exception>
/// <exception cref="COMException">t 是一个 COM 对象,但用于获取类型的类标识符无效,或标识的类未注册</exception>
/// <exception cref="TypeLoadException">t 不是有效类型</exception>
/// <exception cref="TargetException">尝试调用一个不存在的属性</exception>
/// <returns>指定的对象实例</returns>
public object GetObject (Type t)
{
if (t == null)
{
throw new ArgumentNullException ("t");
}
string key = string.Empty;
IniSectionAttribute sectionAttribute = t.GetCustomAttribute<IniSectionAttribute> ();
if (sectionAttribute != null)
{
key = sectionAttribute.SectionName;
}
else
{
key = t.Name;
}
return this.GetObject (key, t);
}
/// <summary>
/// 从 <see cref="IniConfig"/> 维护的 <see cref="IObject"/> 中获取一个指定节名的 <see cref="ISection"/> 反序列化成指定类型的对象
/// </summary>
/// <param name="sectionKey">用作要获取的元素的键的对象</param>
/// <param name="t">用作要转换目标对象的类型的对象</param>
/// <exception cref="ArgumentNullException">t 为 null</exception>
/// <exception cref="ArgumentException">sectionKey 未能匹配到指定节点 或 t 不是 <see cref="RuntimeType"/>。 或 t 是开放式泛型类型(即,<see cref="Type.ContainsGenericParameters"/> 属性将返回 <see langword="true"/>)</exception>
/// <exception cref="NotSupportedException">t 不能为 <see cref="TypeBuilder"/>。 或 不支持创建 <see cref="TypedReference"/>、<see cref="ArgIterator"/>、<see cref="Void"/>和 <see cref="RuntimeArgumentHandle"/> 类型,或者这些类型的数组。 或 包含 t 的程序集是一个用 <see cref="AssemblyBuilderAccess.Save"/> 创建的动态程序集</exception>
/// <exception cref="TargetInvocationException">正在被调用的构造函数引发了一个异常</exception>
/// <exception cref="MethodAccessException">调用方没有权限调用此构造函数</exception>
/// <exception cref="MemberAccessException">无法创建抽象类的实例,或者此成员是使用晚期绑定机制调用的</exception>
/// <exception cref="InvalidComObjectException">未通过 Overload:<see cref="Type.GetTypeFromProgID"/> 或 Overload:<see cref="Type.GetTypeFromCLSID"/> 获取 COM 类型</exception>
/// <exception cref="COMException">t 是一个 COM 对象,但用于获取类型的类标识符无效,或标识的类未注册</exception>
/// <exception cref="TypeLoadException">t 不是有效类型</exception>
/// <exception cref="TargetException">尝试调用一个不存在的属性</exception>
/// <returns>指定的对象实例</returns>
public object GetObject (string sectionKey, Type t)
{
if (t == null)
{
throw new ArgumentNullException ("t");
}
if (!this._object.ContainsKey (sectionKey)) // 如果不存在这个名称
{
throw new ArgumentException ("未能找到与传入节名匹配的节点, 请检查节名是否有效", "sectionKey");
}
// 实例化对象
object instance = Activator.CreateInstance (t, true);
// 获取属性列表
List<PropertyInfo> properties = new List<PropertyInfo> (t.GetProperties (BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance));
// 获取节点
ISection section = this._object[sectionKey];
foreach (KeyValuePair<string, IValue> item in section)
{
if (properties.Count == 0)
{
throw new TargetException (string.Format ("正在尝试调用一个不存在的属性 {0} 引发异常", item.Key));
}
for (int i = 0; i < properties.Count; i++)
{
IniKeyAttribute keyAttribute = properties[i].GetCustomAttribute<IniKeyAttribute> ();
if ((keyAttribute != null && keyAttribute.KeyName.Equals (item.Key)) || properties[i].Name.Equals (item.Key))
{
MethodInfo method = properties[i].GetSetMethod (true);
if (method.GetParameters ().Count () == 0)
{
method.Invoke (instance, new object[] { item.Value });
}
properties.RemoveAt (i);
break;
}
}
}
return instance;
}
#endregion
#region --私有方法--
private void InitializeIni (string filePath, Encoding encoding)
{
// 处理字符串
if (!Path.IsPathRooted (filePath))
{
// 处理原始字符串
StringBuilder builder = new StringBuilder (filePath);
builder.Replace ('/', '\\');
while (builder[0] == '\\')
{
builder.Remove (0, 1);
}
// 相对路径转绝对路径
builder.Insert (0, AppDomain.CurrentDomain.BaseDirectory);
filePath = builder.ToString ();
}
// 处理文件
if (!File.Exists (filePath))
{
File.Create (filePath).Close ();
}
// 创建对象
this._object = new IObject (filePath);
if (encoding == null)
{
this._encoding = Encoding.Default;
}
else
{
this._encoding = encoding;
}
}
private static void ParseIni (IObject iniObj, TextReader textReader)
{
if (iniObj == null)
{
throw new ArgumentNullException ("iniObj");
}
if (textReader == null)
{
throw new ArgumentNullException ("textReader");
}
ISection tempSection = null;
while (textReader.Peek () != -1)
{
string line = textReader.ReadLine ();
if (string.IsNullOrEmpty (line) == false && Regices[2].IsMatch (line) == false)
{
Match match = Regices[0].Match (line);
if (match.Success)
{
tempSection = new ISection (match.Groups[1].Value);
iniObj.Add (tempSection);
continue;
}
match = Regices[1].Match (line);
if (match.Success)
{
tempSection.Add (match.Groups[1].Value.Trim (), match.Groups[2].Value);
}
}
}
string temp=null;
IValue value = new IValue(temp);
if (tempSection != null) tempSection.SetDefault(value);
}
#endregion
}
}
| 34.420354 | 289 | 0.666667 | [
"Apache-2.0"
] | Hellobaka/bh3_login_simulation | me.cqp.luohuaming.BH3Scanner.Tool/IniConfig/IniConfig.cs | 18,682 | C# |
using System.Collections.Generic;
namespace Pathfinding {
using Pathfinding.Jobs;
using Unity.Jobs;
using Unity.Collections;
using Unity.Burst;
using UnityEngine;
using Unity.Mathematics;
using Unity.Collections.LowLevel.Unsafe;
/// <summary>
/// Modifies nodes based on the layer of the surface under the node.
///
/// You can for example make all surfaces with a specific layer make the nodes get a specific tag.
///
/// See: grid-rules (view in online documentation for working links)
/// </summary>
public class RulePerLayerModifications : GridGraphRule {
public PerLayerRule[] layerRules = new PerLayerRule[0];
const int SetTagBit = 1 << 30;
public struct PerLayerRule {
/// <summary>Layer this rule applies to</summary>
public int layer;
/// <summary>The action to apply to matching nodes</summary>
public RuleAction action;
/// <summary>
/// Tag for the RuleAction.SetTag action.
/// Must be between 0 and <see cref="Pathfinding.GraphNode.MaxTagIndex"/>
/// </summary>
public int tag;
}
public enum RuleAction {
SetTag,
MakeUnwalkable,
}
public override void Register (GridGraphRules rules) {
int[] layerToTag = new int[32];
bool[] layerToUnwalkable = new bool[32];
for (int i = 0; i < layerRules.Length; i++) {
var rule = layerRules[i];
if (rule.action == RuleAction.SetTag) {
layerToTag[rule.layer] = SetTagBit | rule.tag;
} else {
layerToUnwalkable[rule.layer] = true;
}
}
rules.Add(Pass.BeforeConnections, context => {
new JobSurfaceAction {
layerToTag = layerToTag,
layerToUnwalkable = layerToUnwalkable,
raycastHits = context.data.heightHits,
nodeWalkable = context.data.nodeWalkable,
nodeTags = context.data.nodeTags,
}.ScheduleManagedInMainThread(context.tracker);
});
}
public struct JobSurfaceAction : IJob {
public int[] layerToTag;
public bool[] layerToUnwalkable;
[ReadOnly]
public NativeArray<RaycastHit> raycastHits;
[WriteOnly]
public NativeArray<int> nodeTags;
[WriteOnly]
public NativeArray<bool> nodeWalkable;
public void Execute () {
for (int i = 0; i < raycastHits.Length; i++) {
var coll = raycastHits[i].collider;
if (coll != null) {
var layer = coll.gameObject.layer;
if (layerToUnwalkable[layer]) nodeWalkable[i] = false;
var tag = layerToTag[layer];
if ((tag & SetTagBit) != 0) nodeTags[i] = tag & 0xFF;
}
}
}
}
}
}
| 27.588889 | 99 | 0.675393 | [
"Apache-2.0"
] | Aspekt1024/LittleDrones | Assets/Standard Assets/AstarPathfindingProject/Generators/GridGraph/RulePerLayerModifications.cs | 2,483 | C# |
using PerfCap;
using System.Windows.Forms;
namespace jPerf
{
partial class MainWindow
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainWindow));
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
this.toolStripDropDownButton1 = new System.Windows.Forms.ToolStripDropDownButton();
this.newToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.importToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.jPMImportToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.mergeJPerfCaptureFileJPCToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
this.agisoftMetashapeLogFiletxtToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.agisoftDelighterRemoveShadingLogtxtToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.agisoftDelighterRemoveCastShadowsLogtxtToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripDropDownButton4 = new System.Windows.Forms.ToolStripDropDownButton();
this.helpFileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
this.openLogToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripDropDownButton5 = new System.Windows.Forms.ToolStripDropDownButton();
this.markersToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.viewMarkerListToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.clearAllToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.addMarkerToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripDropDownButton3 = new System.Windows.Forms.ToolStripDropDownButton();
this.showMarkersToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.smoothModeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.noneToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.moderateToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.highToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.timeUnitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.millisecondsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.secondsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.minutesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.resetViewToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripDropDownButton2 = new System.Windows.Forms.ToolStripDropDownButton();
this.startRecordingToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.stopRecordingToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.startRecordingTooltipButton = new System.Windows.Forms.ToolStripButton();
this.stopRecordingTooltipButton = new System.Windows.Forms.ToolStripButton();
this.AddMarkerButton = new System.Windows.Forms.ToolStripButton();
this.plotView1 = new OxyPlot.WindowsForms.PlotView();
this.statusStrip1 = new System.Windows.Forms.StatusStrip();
this.statusIcon = new System.Windows.Forms.ToolStripStatusLabel();
this.statusText = new System.Windows.Forms.ToolStripStatusLabel();
this.sampleCountStatusLabel = new System.Windows.Forms.ToolStripStatusLabel();
this.markerCountStatusLabel = new System.Windows.Forms.ToolStripStatusLabel();
this.timeUnitStatus = new System.Windows.Forms.ToolStripStatusLabel();
this.startTimeStatusLabel = new System.Windows.Forms.ToolStripStatusLabel();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.toolStrip1.SuspendLayout();
this.statusStrip1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
// toolStrip1
//
this.toolStrip1.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripDropDownButton1,
this.toolStripDropDownButton4,
this.toolStripDropDownButton5,
this.toolStripDropDownButton3,
this.toolStripDropDownButton2,
this.startRecordingTooltipButton,
this.stopRecordingTooltipButton,
this.AddMarkerButton});
this.toolStrip1.Location = new System.Drawing.Point(0, 0);
this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
this.toolStrip1.Size = new System.Drawing.Size(609, 25);
this.toolStrip1.TabIndex = 2;
this.toolStrip1.Text = "toolStrip1";
//
// toolStripDropDownButton1
//
this.toolStripDropDownButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
this.toolStripDropDownButton1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.newToolStripMenuItem,
this.openToolStripMenuItem,
this.importToolStripMenuItem,
this.saveToolStripMenuItem,
this.toolStripSeparator1,
this.exitToolStripMenuItem});
this.toolStripDropDownButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripDropDownButton1.Image")));
this.toolStripDropDownButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripDropDownButton1.Name = "toolStripDropDownButton1";
this.toolStripDropDownButton1.Size = new System.Drawing.Size(38, 22);
this.toolStripDropDownButton1.Text = "File";
//
// newToolStripMenuItem
//
this.newToolStripMenuItem.Name = "newToolStripMenuItem";
this.newToolStripMenuItem.Size = new System.Drawing.Size(110, 22);
this.newToolStripMenuItem.Text = "New";
this.newToolStripMenuItem.Click += new System.EventHandler(this.newToolStripMenuItem_Click);
//
// openToolStripMenuItem
//
this.openToolStripMenuItem.Name = "openToolStripMenuItem";
this.openToolStripMenuItem.Size = new System.Drawing.Size(110, 22);
this.openToolStripMenuItem.Text = "Open";
this.openToolStripMenuItem.Click += new System.EventHandler(this.openToolStripMenuItem_Click);
//
// importToolStripMenuItem
//
this.importToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.jPMImportToolStripMenuItem,
this.mergeJPerfCaptureFileJPCToolStripMenuItem,
this.toolStripSeparator3,
this.agisoftMetashapeLogFiletxtToolStripMenuItem,
this.agisoftDelighterRemoveShadingLogtxtToolStripMenuItem,
this.agisoftDelighterRemoveCastShadowsLogtxtToolStripMenuItem});
this.importToolStripMenuItem.Name = "importToolStripMenuItem";
this.importToolStripMenuItem.Size = new System.Drawing.Size(110, 22);
this.importToolStripMenuItem.Text = "Import";
//
// jPMImportToolStripMenuItem
//
this.jPMImportToolStripMenuItem.Name = "jPMImportToolStripMenuItem";
this.jPMImportToolStripMenuItem.Size = new System.Drawing.Size(336, 22);
this.jPMImportToolStripMenuItem.Text = "JPerf Marker File (.JPM)";
this.jPMImportToolStripMenuItem.Click += new System.EventHandler(this.jPMImportToolStripMenuItem_Click);
//
// mergeJPerfCaptureFileJPCToolStripMenuItem
//
this.mergeJPerfCaptureFileJPCToolStripMenuItem.Name = "mergeJPerfCaptureFileJPCToolStripMenuItem";
this.mergeJPerfCaptureFileJPCToolStripMenuItem.Size = new System.Drawing.Size(336, 22);
this.mergeJPerfCaptureFileJPCToolStripMenuItem.Text = "Merge jPerf Capture File (.JPC)";
this.mergeJPerfCaptureFileJPCToolStripMenuItem.Click += new System.EventHandler(this.mergeJPerfCaptureFileJPCToolStripMenuItem_Click);
//
// toolStripSeparator3
//
this.toolStripSeparator3.Name = "toolStripSeparator3";
this.toolStripSeparator3.Size = new System.Drawing.Size(333, 6);
//
// agisoftMetashapeLogFiletxtToolStripMenuItem
//
this.agisoftMetashapeLogFiletxtToolStripMenuItem.Name = "agisoftMetashapeLogFiletxtToolStripMenuItem";
this.agisoftMetashapeLogFiletxtToolStripMenuItem.Size = new System.Drawing.Size(336, 22);
this.agisoftMetashapeLogFiletxtToolStripMenuItem.Text = "Agisoft Metashape Log File (.txt)";
this.agisoftMetashapeLogFiletxtToolStripMenuItem.Click += new System.EventHandler(this.agisoftMetashapeLogFiletxtToolStripMenuItem_Click);
//
// agisoftDelighterRemoveShadingLogtxtToolStripMenuItem
//
this.agisoftDelighterRemoveShadingLogtxtToolStripMenuItem.Name = "agisoftDelighterRemoveShadingLogtxtToolStripMenuItem";
this.agisoftDelighterRemoveShadingLogtxtToolStripMenuItem.Size = new System.Drawing.Size(336, 22);
this.agisoftDelighterRemoveShadingLogtxtToolStripMenuItem.Text = "Agisoft Delighter Remove Shading Log (.txt)";
this.agisoftDelighterRemoveShadingLogtxtToolStripMenuItem.Click += new System.EventHandler(this.agisoftDelighterRemoveShadingLogtxtToolStripMenuItem_Click);
//
// agisoftDelighterRemoveCastShadowsLogtxtToolStripMenuItem
//
this.agisoftDelighterRemoveCastShadowsLogtxtToolStripMenuItem.Name = "agisoftDelighterRemoveCastShadowsLogtxtToolStripMenuItem";
this.agisoftDelighterRemoveCastShadowsLogtxtToolStripMenuItem.Size = new System.Drawing.Size(336, 22);
this.agisoftDelighterRemoveCastShadowsLogtxtToolStripMenuItem.Text = "Agisoft Delighter Remove Cast Shadows Log (.txt)";
this.agisoftDelighterRemoveCastShadowsLogtxtToolStripMenuItem.Click += new System.EventHandler(this.agisoftDelighterRemoveCastShadowsLogtxtToolStripMenuItem_Click);
//
// saveToolStripMenuItem
//
this.saveToolStripMenuItem.Name = "saveToolStripMenuItem";
this.saveToolStripMenuItem.Size = new System.Drawing.Size(110, 22);
this.saveToolStripMenuItem.Text = "Save";
this.saveToolStripMenuItem.Click += new System.EventHandler(this.saveToolStripMenuItem_Click);
//
// toolStripSeparator1
//
this.toolStripSeparator1.Name = "toolStripSeparator1";
this.toolStripSeparator1.Size = new System.Drawing.Size(107, 6);
//
// exitToolStripMenuItem
//
this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
this.exitToolStripMenuItem.Size = new System.Drawing.Size(110, 22);
this.exitToolStripMenuItem.Text = "Exit";
this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click);
//
// toolStripDropDownButton4
//
this.toolStripDropDownButton4.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
this.toolStripDropDownButton4.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
this.toolStripDropDownButton4.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.helpFileToolStripMenuItem,
this.aboutToolStripMenuItem,
this.toolStripSeparator2,
this.openLogToolStripMenuItem});
this.toolStripDropDownButton4.Image = ((System.Drawing.Image)(resources.GetObject("toolStripDropDownButton4.Image")));
this.toolStripDropDownButton4.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripDropDownButton4.Name = "toolStripDropDownButton4";
this.toolStripDropDownButton4.Size = new System.Drawing.Size(45, 22);
this.toolStripDropDownButton4.Text = "Help";
//
// helpFileToolStripMenuItem
//
this.helpFileToolStripMenuItem.Enabled = false;
this.helpFileToolStripMenuItem.Name = "helpFileToolStripMenuItem";
this.helpFileToolStripMenuItem.Size = new System.Drawing.Size(126, 22);
this.helpFileToolStripMenuItem.Text = "Help File";
//
// aboutToolStripMenuItem
//
this.aboutToolStripMenuItem.Name = "aboutToolStripMenuItem";
this.aboutToolStripMenuItem.Size = new System.Drawing.Size(126, 22);
this.aboutToolStripMenuItem.Text = "About";
this.aboutToolStripMenuItem.Click += new System.EventHandler(this.aboutToolStripMenuItem_Click);
//
// toolStripSeparator2
//
this.toolStripSeparator2.Name = "toolStripSeparator2";
this.toolStripSeparator2.Size = new System.Drawing.Size(123, 6);
//
// openLogToolStripMenuItem
//
this.openLogToolStripMenuItem.Name = "openLogToolStripMenuItem";
this.openLogToolStripMenuItem.Size = new System.Drawing.Size(126, 22);
this.openLogToolStripMenuItem.Text = "Show Log";
this.openLogToolStripMenuItem.Click += new System.EventHandler(this.openLogToolStripMenuItem_Click);
//
// toolStripDropDownButton5
//
this.toolStripDropDownButton5.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
this.toolStripDropDownButton5.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.markersToolStripMenuItem,
this.addMarkerToolStripMenuItem});
this.toolStripDropDownButton5.Image = ((System.Drawing.Image)(resources.GetObject("toolStripDropDownButton5.Image")));
this.toolStripDropDownButton5.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripDropDownButton5.Name = "toolStripDropDownButton5";
this.toolStripDropDownButton5.Size = new System.Drawing.Size(40, 22);
this.toolStripDropDownButton5.Text = "Edit";
//
// markersToolStripMenuItem
//
this.markersToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.viewMarkerListToolStripMenuItem,
this.clearAllToolStripMenuItem});
this.markersToolStripMenuItem.Name = "markersToolStripMenuItem";
this.markersToolStripMenuItem.Size = new System.Drawing.Size(136, 22);
this.markersToolStripMenuItem.Text = "Markers";
//
// viewMarkerListToolStripMenuItem
//
this.viewMarkerListToolStripMenuItem.Enabled = false;
this.viewMarkerListToolStripMenuItem.Name = "viewMarkerListToolStripMenuItem";
this.viewMarkerListToolStripMenuItem.Size = new System.Drawing.Size(139, 22);
this.viewMarkerListToolStripMenuItem.Text = "Edit Markers";
this.viewMarkerListToolStripMenuItem.Click += new System.EventHandler(this.viewMarkerListToolStripMenuItem_Click);
//
// clearAllToolStripMenuItem
//
this.clearAllToolStripMenuItem.Enabled = false;
this.clearAllToolStripMenuItem.Name = "clearAllToolStripMenuItem";
this.clearAllToolStripMenuItem.Size = new System.Drawing.Size(139, 22);
this.clearAllToolStripMenuItem.Text = "Clear All";
this.clearAllToolStripMenuItem.Click += new System.EventHandler(this.clearAllToolStripMenuItem_Click);
//
// addMarkerToolStripMenuItem
//
this.addMarkerToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("addMarkerToolStripMenuItem.Image")));
this.addMarkerToolStripMenuItem.Name = "addMarkerToolStripMenuItem";
this.addMarkerToolStripMenuItem.Size = new System.Drawing.Size(136, 22);
this.addMarkerToolStripMenuItem.Text = "Add Marker";
this.addMarkerToolStripMenuItem.Click += new System.EventHandler(this.addMarkerButton_Click);
//
// toolStripDropDownButton3
//
this.toolStripDropDownButton3.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
this.toolStripDropDownButton3.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.showMarkersToolStripMenuItem,
this.smoothModeToolStripMenuItem,
this.timeUnitToolStripMenuItem,
this.resetViewToolStripMenuItem});
this.toolStripDropDownButton3.Image = ((System.Drawing.Image)(resources.GetObject("toolStripDropDownButton3.Image")));
this.toolStripDropDownButton3.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripDropDownButton3.Name = "toolStripDropDownButton3";
this.toolStripDropDownButton3.Size = new System.Drawing.Size(45, 22);
this.toolStripDropDownButton3.Text = "View";
//
// showMarkersToolStripMenuItem
//
this.showMarkersToolStripMenuItem.Checked = true;
this.showMarkersToolStripMenuItem.CheckOnClick = true;
this.showMarkersToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
this.showMarkersToolStripMenuItem.Name = "showMarkersToolStripMenuItem";
this.showMarkersToolStripMenuItem.Size = new System.Drawing.Size(150, 22);
this.showMarkersToolStripMenuItem.Text = "Show Markers";
this.showMarkersToolStripMenuItem.Click += new System.EventHandler(this.showMarkersToolStripMenuItem_Click);
//
// smoothModeToolStripMenuItem
//
this.smoothModeToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.noneToolStripMenuItem,
this.moderateToolStripMenuItem,
this.highToolStripMenuItem});
this.smoothModeToolStripMenuItem.Name = "smoothModeToolStripMenuItem";
this.smoothModeToolStripMenuItem.Size = new System.Drawing.Size(150, 22);
this.smoothModeToolStripMenuItem.Text = "Smooth Mode";
//
// noneToolStripMenuItem
//
this.noneToolStripMenuItem.Name = "noneToolStripMenuItem";
this.noneToolStripMenuItem.Size = new System.Drawing.Size(125, 22);
this.noneToolStripMenuItem.Text = "None";
this.noneToolStripMenuItem.Click += new System.EventHandler(this.noneToolStripMenuItem_Click);
//
// moderateToolStripMenuItem
//
this.moderateToolStripMenuItem.Name = "moderateToolStripMenuItem";
this.moderateToolStripMenuItem.Size = new System.Drawing.Size(125, 22);
this.moderateToolStripMenuItem.Text = "Moderate";
this.moderateToolStripMenuItem.Click += new System.EventHandler(this.moderateToolStripMenuItem_Click);
//
// highToolStripMenuItem
//
this.highToolStripMenuItem.Name = "highToolStripMenuItem";
this.highToolStripMenuItem.Size = new System.Drawing.Size(125, 22);
this.highToolStripMenuItem.Text = "High";
this.highToolStripMenuItem.Click += new System.EventHandler(this.highToolStripMenuItem_Click);
//
// timeUnitToolStripMenuItem
//
this.timeUnitToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.millisecondsToolStripMenuItem,
this.secondsToolStripMenuItem,
this.minutesToolStripMenuItem});
this.timeUnitToolStripMenuItem.Name = "timeUnitToolStripMenuItem";
this.timeUnitToolStripMenuItem.Size = new System.Drawing.Size(150, 22);
this.timeUnitToolStripMenuItem.Text = "Time Unit";
//
// millisecondsToolStripMenuItem
//
this.millisecondsToolStripMenuItem.Name = "millisecondsToolStripMenuItem";
this.millisecondsToolStripMenuItem.Size = new System.Drawing.Size(140, 22);
this.millisecondsToolStripMenuItem.Text = "Milliseconds";
this.millisecondsToolStripMenuItem.Click += new System.EventHandler(this.millisecondsToolStripMenuItem_Click);
//
// secondsToolStripMenuItem
//
this.secondsToolStripMenuItem.Name = "secondsToolStripMenuItem";
this.secondsToolStripMenuItem.Size = new System.Drawing.Size(140, 22);
this.secondsToolStripMenuItem.Text = "Seconds";
this.secondsToolStripMenuItem.Click += new System.EventHandler(this.secondsToolStripMenuItem_Click);
//
// minutesToolStripMenuItem
//
this.minutesToolStripMenuItem.Name = "minutesToolStripMenuItem";
this.minutesToolStripMenuItem.Size = new System.Drawing.Size(140, 22);
this.minutesToolStripMenuItem.Text = "Minutes";
this.minutesToolStripMenuItem.Click += new System.EventHandler(this.minutesToolStripMenuItem_Click);
//
// resetViewToolStripMenuItem
//
this.resetViewToolStripMenuItem.Name = "resetViewToolStripMenuItem";
this.resetViewToolStripMenuItem.Size = new System.Drawing.Size(150, 22);
this.resetViewToolStripMenuItem.Text = "Reset View";
this.resetViewToolStripMenuItem.Click += new System.EventHandler(this.resetViewToolStripMenuItem_Click);
//
// toolStripDropDownButton2
//
this.toolStripDropDownButton2.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
this.toolStripDropDownButton2.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.startRecordingToolStripMenuItem,
this.stopRecordingToolStripMenuItem});
this.toolStripDropDownButton2.Image = ((System.Drawing.Image)(resources.GetObject("toolStripDropDownButton2.Image")));
this.toolStripDropDownButton2.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripDropDownButton2.Name = "toolStripDropDownButton2";
this.toolStripDropDownButton2.Size = new System.Drawing.Size(57, 22);
this.toolStripDropDownButton2.Text = "Record";
//
// startRecordingToolStripMenuItem
//
this.startRecordingToolStripMenuItem.Image = global::jPerf.Properties.Resources.FlagIcon2_red;
this.startRecordingToolStripMenuItem.Name = "startRecordingToolStripMenuItem";
this.startRecordingToolStripMenuItem.Size = new System.Drawing.Size(155, 22);
this.startRecordingToolStripMenuItem.Text = "Start Recording";
this.startRecordingToolStripMenuItem.Click += new System.EventHandler(this.startRecordingToolStripMenuItem_Click);
//
// stopRecordingToolStripMenuItem
//
this.stopRecordingToolStripMenuItem.Enabled = false;
this.stopRecordingToolStripMenuItem.Image = global::jPerf.Properties.Resources.Stop_Icon;
this.stopRecordingToolStripMenuItem.Name = "stopRecordingToolStripMenuItem";
this.stopRecordingToolStripMenuItem.Size = new System.Drawing.Size(155, 22);
this.stopRecordingToolStripMenuItem.Text = "Stop Recording";
this.stopRecordingToolStripMenuItem.Click += new System.EventHandler(this.stopRecordingToolStripMenuItem_Click);
//
// startRecordingTooltipButton
//
this.startRecordingTooltipButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.startRecordingTooltipButton.Image = global::jPerf.Properties.Resources.FlagIcon2_red;
this.startRecordingTooltipButton.ImageTransparentColor = System.Drawing.Color.Magenta;
this.startRecordingTooltipButton.Margin = new System.Windows.Forms.Padding(16, 1, 0, 2);
this.startRecordingTooltipButton.Name = "startRecordingTooltipButton";
this.startRecordingTooltipButton.Size = new System.Drawing.Size(23, 22);
this.startRecordingTooltipButton.Text = "Start Recording";
this.startRecordingTooltipButton.Click += new System.EventHandler(this.startRecordingToolStripMenuItem_Click);
//
// stopRecordingTooltipButton
//
this.stopRecordingTooltipButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.stopRecordingTooltipButton.Image = global::jPerf.Properties.Resources.Stop_Icon;
this.stopRecordingTooltipButton.ImageTransparentColor = System.Drawing.Color.Magenta;
this.stopRecordingTooltipButton.Name = "stopRecordingTooltipButton";
this.stopRecordingTooltipButton.Size = new System.Drawing.Size(23, 22);
this.stopRecordingTooltipButton.Text = "Stop Recording";
this.stopRecordingTooltipButton.Click += new System.EventHandler(this.stopRecordingToolStripMenuItem_Click);
//
// AddMarkerButton
//
this.AddMarkerButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.AddMarkerButton.Enabled = false;
this.AddMarkerButton.Image = ((System.Drawing.Image)(resources.GetObject("AddMarkerButton.Image")));
this.AddMarkerButton.ImageTransparentColor = System.Drawing.Color.Magenta;
this.AddMarkerButton.Name = "AddMarkerButton";
this.AddMarkerButton.Size = new System.Drawing.Size(23, 22);
this.AddMarkerButton.Text = "Add Marker";
this.AddMarkerButton.Click += new System.EventHandler(this.addMarkerButton_Click);
//
// plotView1
//
this.plotView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.plotView1.Location = new System.Drawing.Point(0, 28);
this.plotView1.Name = "plotView1";
this.plotView1.PanCursor = System.Windows.Forms.Cursors.Hand;
this.plotView1.Size = new System.Drawing.Size(609, 310);
this.plotView1.TabIndex = 4;
this.plotView1.Text = "plotView1";
this.plotView1.ZoomHorizontalCursor = System.Windows.Forms.Cursors.SizeWE;
this.plotView1.ZoomRectangleCursor = System.Windows.Forms.Cursors.SizeNWSE;
this.plotView1.ZoomVerticalCursor = System.Windows.Forms.Cursors.SizeNS;
//
// statusStrip1
//
this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.statusIcon,
this.statusText,
this.sampleCountStatusLabel,
this.markerCountStatusLabel,
this.timeUnitStatus,
this.startTimeStatusLabel});
this.statusStrip1.Location = new System.Drawing.Point(0, 328);
this.statusStrip1.Name = "statusStrip1";
this.statusStrip1.Size = new System.Drawing.Size(609, 22);
this.statusStrip1.TabIndex = 6;
this.statusStrip1.Text = "statusStrip1";
//
// statusIcon
//
this.statusIcon.ForeColor = System.Drawing.Color.Green;
this.statusIcon.Name = "statusIcon";
this.statusIcon.Size = new System.Drawing.Size(19, 17);
this.statusIcon.Text = "✅";
this.statusIcon.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// statusText
//
this.statusText.Name = "statusText";
this.statusText.Size = new System.Drawing.Size(48, 17);
this.statusText.Text = "Status...";
//
// sampleCountStatusLabel
//
this.sampleCountStatusLabel.Name = "sampleCountStatusLabel";
this.sampleCountStatusLabel.Size = new System.Drawing.Size(63, 17);
this.sampleCountStatusLabel.Text = "Samples: 0";
//
// markerCountStatusLabel
//
this.markerCountStatusLabel.Name = "markerCountStatusLabel";
this.markerCountStatusLabel.Size = new System.Drawing.Size(61, 17);
this.markerCountStatusLabel.Text = "Markers: 0";
//
// timeUnitStatus
//
this.timeUnitStatus.Name = "timeUnitStatus";
this.timeUnitStatus.Size = new System.Drawing.Size(108, 17);
this.timeUnitStatus.Text = "Time Unit: Seconds";
//
// startTimeStatusLabel
//
this.startTimeStatusLabel.Name = "startTimeStatusLabel";
this.startTimeStatusLabel.Size = new System.Drawing.Size(124, 17);
this.startTimeStatusLabel.Text = "Start time: Not Started";
//
// pictureBox1
//
this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.pictureBox1.Image = global::jPerf.Properties.Resources.background_transparent;
this.pictureBox1.InitialImage = ((System.Drawing.Image)(resources.GetObject("pictureBox1.InitialImage")));
this.pictureBox1.Location = new System.Drawing.Point(0, 25);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(609, 303);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
this.pictureBox1.TabIndex = 7;
this.pictureBox1.TabStop = false;
//
// MainWindow
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(609, 350);
this.Controls.Add(this.pictureBox1);
this.Controls.Add(this.statusStrip1);
this.Controls.Add(this.plotView1);
this.Controls.Add(this.toolStrip1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "MainWindow";
this.Text = "JPerf";
this.toolStrip1.ResumeLayout(false);
this.toolStrip1.PerformLayout();
this.statusStrip1.ResumeLayout(false);
this.statusStrip1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.ToolStrip toolStrip1;
private System.Windows.Forms.ToolStripDropDownButton toolStripDropDownButton1;
private System.Windows.Forms.ToolStripMenuItem openToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem saveToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem;
private System.Windows.Forms.ToolStripDropDownButton toolStripDropDownButton2;
private System.Windows.Forms.ToolStripMenuItem startRecordingToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem stopRecordingToolStripMenuItem;
private OxyPlot.WindowsForms.PlotView plotView1;
private System.Windows.Forms.ToolStripButton AddMarkerButton;
private System.Windows.Forms.ToolStripMenuItem importToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem jPMImportToolStripMenuItem;
private System.Windows.Forms.ToolStripDropDownButton toolStripDropDownButton3;
private System.Windows.Forms.ToolStripMenuItem smoothModeToolStripMenuItem;
private ToolStripMenuItem showMarkersToolStripMenuItem;
private ToolStripMenuItem noneToolStripMenuItem;
private ToolStripMenuItem moderateToolStripMenuItem;
private ToolStripMenuItem highToolStripMenuItem;
private ToolStripDropDownButton toolStripDropDownButton4;
private ToolStripMenuItem helpFileToolStripMenuItem;
private ToolStripSeparator toolStripSeparator2;
private ToolStripMenuItem aboutToolStripMenuItem;
private ToolStripDropDownButton toolStripDropDownButton5;
private ToolStripMenuItem markersToolStripMenuItem;
private ToolStripMenuItem viewMarkerListToolStripMenuItem;
private ToolStripMenuItem clearAllToolStripMenuItem;
private StatusStrip statusStrip1;
private ToolStripStatusLabel statusText;
private PictureBox pictureBox1;
private ToolStripStatusLabel statusIcon;
private ToolStripMenuItem addMarkerToolStripMenuItem;
public ToolStripMenuItem newToolStripMenuItem;
private ToolStripStatusLabel sampleCountStatusLabel;
private ToolStripStatusLabel markerCountStatusLabel;
private ToolStripMenuItem openLogToolStripMenuItem;
private ToolStripButton startRecordingTooltipButton;
private ToolStripButton stopRecordingTooltipButton;
private ToolStripMenuItem timeUnitToolStripMenuItem;
private ToolStripMenuItem millisecondsToolStripMenuItem;
private ToolStripMenuItem secondsToolStripMenuItem;
private ToolStripMenuItem minutesToolStripMenuItem;
private ToolStripStatusLabel timeUnitStatus;
private ToolStripMenuItem resetViewToolStripMenuItem;
private ToolStripMenuItem mergeJPerfCaptureFileJPCToolStripMenuItem;
private ToolStripMenuItem agisoftMetashapeLogFiletxtToolStripMenuItem;
private ToolStripSeparator toolStripSeparator3;
private ToolStripMenuItem agisoftDelighterRemoveShadingLogtxtToolStripMenuItem;
private ToolStripMenuItem agisoftDelighterRemoveCastShadowsLogtxtToolStripMenuItem;
private ToolStripStatusLabel startTimeStatusLabel;
}
}
| 60.495881 | 176 | 0.681163 | [
"MIT"
] | CodeZombie/jPerf | PerfCap/Views/MainWindow.Designer.cs | 36,725 | C# |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using Microsoft.ReactNative;
using Microsoft.ReactNative.Managed;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Windows.ApplicationModel.ConversationalAgent;
using Windows.ApplicationModel.DataTransfer;
using Windows.Data.Json;
using Windows.Foundation;
using Windows.Storage;
using Windows.UI.ViewManagement;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Documents;
using Windows.UI.Xaml.Media;
namespace TreeDumpLibrary
{
internal class TreeDumpControlViewManager : IViewManager, IViewManagerWithNativeProperties
{
public string Name => "TreeDumpControl";
public FrameworkElement CreateView()
{
m_textBlock = new TextBlock();
m_textBlock.TextWrapping = TextWrapping.Wrap;
m_textBlock.IsTextSelectionEnabled = false;
m_textBlock.LayoutUpdated += async (source, e) =>
{
await KnownFolders.DocumentsLibrary.CreateFolderAsync("TreeDump", CreationCollisionOption.OpenIfExists);
ApplicationView.GetForCurrentView().TryResizeView(new Size(800, 600));
var bounds = ApplicationView.GetForCurrentView().VisibleBounds;
if (bounds.Width != 800 || bounds.Height != 600)
{
// Dump disabled when window size is not 800x600!
UpdateResult(false /*matchDump*/ , $"Window has been resized, dump comparison is only valid at default launch size: 800x600!, current size: {bounds.Width}x{bounds.Height}");
}
else
{
// delay dumping tree by 100ms for layout to stabilize
if (m_timer != null)
{
m_timer.Stop();
m_timer.Start();
}
}
};
m_textBlock.PointerPressed += (source, e) =>
{
if (!m_dumpMatchExpected)
{
if (m_timer != null)
{
m_timer.Stop();
}
m_errStringShowing = true;
errors.Apply(m_textBlock);
m_textBlock.IsTextSelectionEnabled = true;
}
};
return m_textBlock;
}
public void UpdateProperties(FrameworkElement view, IJSValueReader propertyMapReader)
{
var propertyMap = JSValue.ReadObjectFrom(propertyMapReader);
foreach (KeyValuePair<string, JSValue> kvp in propertyMap)
{
if (kvp.Key == "dumpID")
{
SetDumpID((TextBlock)view, kvp.Value.AsString());
}
else if (kvp.Key == "uiaID")
{
SetUIAID((TextBlock)view, kvp.Value.AsString());
}
else if (kvp.Key == "additionalProperties")
{
SetAdditionalProperties(kvp.Value.AsArray());
}
}
}
IReadOnlyDictionary<string, ViewManagerPropertyType> IViewManagerWithNativeProperties.NativeProps => new Dictionary<string, ViewManagerPropertyType>
{ { "dumpID", ViewManagerPropertyType.String },
{ "uiaID", ViewManagerPropertyType.String },
{ "additionalProperties", ViewManagerPropertyType.Array }
};
private static string GetOutputFile(string dumpID)
{
return "TreeDump\\" + dumpID + ".json";
}
private static string GetMasterFile(string dumpID)
{
return "TreeDump\\masters\\" + dumpID + ".json";
}
public async static Task<bool> DoesTreeDumpMatchForRNTester(DependencyObject root)
{
string json = VisualTreeDumper.DumpTree(root, null, new string[] { }, DumpTreeMode.Json);
try
{
var obj = JsonValue.Parse(json).GetObject();
var element = VisualTreeDumper.FindElementByAutomationId(obj, "PageHeader");
if (element == null)
{
return false;
}
var value = element.GetNamedString("Text");
var pageName = new Regex(@"[<|>]").Replace(value, "");
var match = await MatchDump(json, GetMasterFile(pageName), GetOutputFile(pageName));
return match;
}
catch
{
Debug.WriteLine("JSON ERROR:\n" + json);
throw;
}
}
public void SetDumpID(TextBlock view, string value)
{
m_dumpID = value;
m_dumpMatchExpected = false;
m_dumpExpectedText = null;
m_errString = "";
errors = new TreeDumpErrors();
m_errStringShowing = false;
if (m_textBlock != null)
{
m_textBlock.IsTextSelectionEnabled = false;
UpdateTextBlockText("");
}
m_timer = new DispatcherTimer();
m_timer.Tick += dispatcherTimer_Tick;
m_timer.Interval = new TimeSpan(0, 0, 0, 0, 200);
}
public void SetUIAID(TextBlock view, string value)
{
m_uiaID = value;
}
public void SetAdditionalProperties(IReadOnlyList<JSValue> additionalProperties)
{
foreach (var property in additionalProperties)
{
m_additionalProperties.Add(property.AsString());
}
}
public static async Task<bool> MatchDump(string outputJson, string masterFileRelativePath, string outputFileRelativePath)
{
Debug.WriteLine($"master file = {Windows.ApplicationModel.Package.Current.InstalledLocation.Path}\\Assets\\{masterFileRelativePath}");
StorageFolder storageFolder = KnownFolders.DocumentsLibrary;
Debug.WriteLine($"output file = {storageFolder.Path + "\\" + outputFileRelativePath}");
StorageFile outFile = await storageFolder.CreateFileAsync(outputFileRelativePath, CreationCollisionOption.ReplaceExisting);
await FileIO.WriteTextAsync(outFile, outputJson);
StorageFile masterFile = await Windows.ApplicationModel.Package.Current.InstalledLocation.GetFileAsync($@"Assets\{masterFileRelativePath}");
string masterJson = await FileIO.ReadTextAsync(masterFile);
if (!TreeDumpHelper.DumpsAreEqual(masterJson, outputJson))
{
return false;
}
else
{
return true;
}
}
internal static async Task<bool> MatchTreeDumpFromLayoutUpdateAsync(string dumpID, string uiaId, TextBlock textBlock, IList<string> additionalProperties, DumpTreeMode mode, string dumpExpectedText)
{
// First find root
DependencyObject current = textBlock;
DependencyObject parent = VisualTreeHelper.GetParent(current);
while (parent != null)
{
current = parent;
parent = VisualTreeHelper.GetParent(current);
}
DependencyObject dumpRoot = current;
// if UIAID is passed in from test, find the matching child as the root to dump
if (uiaId != null)
{
var matchingNode = TreeDumpHelper.FindChildWithMatchingUIAID(current, uiaId);
if (matchingNode != null)
{
dumpRoot = matchingNode;
}
}
string dumpText = VisualTreeDumper.DumpTree(dumpRoot, textBlock, additionalProperties, mode);
if (dumpText != dumpExpectedText)
{
return await MatchDump(dumpText, GetMasterFile(dumpID), GetOutputFile(dumpID));
}
return true;
}
private async void dispatcherTimer_Tick(object sender, object e)
{
m_timer.Stop();
if (VisualTreeHelper.GetParent(m_textBlock) != null)
{
var matchSuccessful = await MatchTreeDumpFromLayoutUpdateAsync(m_dumpID, m_uiaID, m_textBlock, m_additionalProperties, DumpTreeMode.Json, m_dumpExpectedText);
if (!matchSuccessful)
{
StorageFolder storageFolder = KnownFolders.DocumentsLibrary;
StorageFile outFile = await storageFolder.GetFileAsync(GetOutputFile(m_dumpID));
StorageFile masterFile = await Windows.ApplicationModel.Package.Current.InstalledLocation.GetFileAsync($@"Assets\{GetMasterFile(m_dumpID)}");
UpdateResult(false /*matchDump*/ ,
$"Tree dump file does not match master at {masterFile.Path} - See output at {outFile.Path}",
GetInlines(masterFile, outFile, m_textBlock));
}
else
{
UpdateResult(true /*matchDump*/ , "");
}
}
}
private static IList<Inline> GetInlines(StorageFile masterFile, StorageFile outFile, UIElement anchor)
{
Hyperlink masterLink = new Hyperlink();
masterLink.Click += async (_1, _2) => { await Windows.System.Launcher.LaunchFileAsync(masterFile); };
masterLink.Inlines.Add(new Run() { Text = "master" });
Hyperlink outLink = new Hyperlink();
outLink.Click += async (_1, _2) => { await Windows.System.Launcher.LaunchFileAsync(outFile); };
outLink.Inlines.Add(new Run() { Text = "output" });
List<Inline> inlines = new List<Inline>()
{
new Run () { Text = "Tree dump " },
outLink,
new Run () { Text = " does not match " },
masterLink
};
#region Diff support - Replace with LaunchUriAsync when we find the VSCode protocol handler Uri for diffing
string code_cmd = Environment.ExpandEnvironmentVariables(@"%UserProfile%\AppData\Local\Programs\Microsoft VS Code\bin\code.cmd");
Hyperlink diffLink = new Hyperlink();
diffLink.Click += (_1, _2) =>
{
string commandLine = $"code.cmd --diff \"{masterFile.Path}\" \"{outFile.Path}\"";
DataPackage dataPackage = new DataPackage();
dataPackage.SetText(commandLine);
Clipboard.SetContent(dataPackage);
ToolTip toolTip = new ToolTip() { Content = "Copied to clipboard" };
ToolTipService.SetToolTip(anchor, toolTip);
toolTip.Opened += (_3, _4) =>
{
var timer = Windows.System.DispatcherQueue.GetForCurrentThread().CreateTimer();
timer.IsRepeating = false;
timer.Interval = TimeSpan.FromSeconds(1);
timer.Tick += (_5, _6) =>
{
toolTip.IsOpen = false;
ToolTipService.SetToolTip(anchor, null);
};
timer.Start();
};
toolTip.IsOpen = true;
};
diffLink.Inlines.Add(new Run() { Text = "copy diff command to clipboard" });
inlines.Add(new Run() { Text = " - " });
inlines.Add(diffLink);
#endregion
return inlines;
}
private async void UpdateResult(bool matchDump, string helpText, IList<Inline> inlines = null)
{
if (matchDump)
{
UpdateTextBlockText("TreeDump:Passed");
}
else
{
UpdateTextBlockText("TreeDump:Failed, click to see more!");
m_errString += "\r\n" + helpText;
errors.Inlines.Clear();
if (inlines != null)
{
errors.Inlines.AddRange(inlines);
}
else
{
errors.Inlines.Add(new Run() { Text = helpText });
}
errors.Inlines.Add(new LineBreak());
await WriteErrorFile();
}
m_dumpMatchExpected = matchDump;
}
private async Task WriteErrorFile()
{
StorageFolder storageFolder = KnownFolders.DocumentsLibrary;
string fileNameError = "TreeDump\\" + m_dumpID + ".err";
try
{
StorageFile errFile = await storageFolder.CreateFileAsync(fileNameError, CreationCollisionOption.GenerateUniqueName);
await FileIO.WriteTextAsync(errFile, m_errString);
}
catch (Exception e)
{
UpdateTextBlockText("Create err file failed: " + e.ToString());
}
}
private void UpdateTextBlockText(string text)
{
if (!m_errStringShowing && m_textBlock.Text != text)
{
m_textBlock.Text = text;
}
}
private TextBlock m_textBlock = null;
private string m_dumpID = "UnknownTest";
private string m_dumpExpectedText;
private bool m_dumpMatchExpected = false;
private bool m_errStringShowing = false;
private string m_errString = "";
private TreeDumpErrors errors = new TreeDumpErrors();
private string m_uiaID = null;
private readonly List<string> m_additionalProperties = new List<string>();
private DispatcherTimer m_timer = null;
}
internal class TreeDumpErrors
{
readonly List<Inline> inlines = new List<Inline>();
public List<Inline> Inlines => inlines;
public void Apply(TextBlock textBlock)
{
textBlock.Text = "";
textBlock.Inlines.Clear();
foreach (var inline in Inlines)
{
textBlock.Inlines.Add(inline);
}
textBlock.Width = 800;
}
}
}
| 39.356164 | 205 | 0.553777 | [
"MIT"
] | AdrianaDJ/react-native-windows | packages/E2ETest/windows/ReactUWPTestApp/TreeDumpControlViewManager.cs | 14,365 | C# |
// -------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See LICENSE in the repo root for license information.
// -------------------------------------------------------------------------------------------------
using System.Collections.Generic;
using Microsoft.Health.Fhir.Liquid.Converter.Exceptions;
using Microsoft.Health.Fhir.Liquid.Converter.Validators;
using Xunit;
namespace Microsoft.Health.Fhir.Liquid.Converter.UnitTests.Validators
{
public class Hl7v2DataValidatorTests
{
private Hl7v2DataValidator _validator = new Hl7v2DataValidator();
public static IEnumerable<object[]> GetIncompleteHeader()
{
yield return new object[] { @"M" };
yield return new object[] { @"abc" };
yield return new object[] { @"MSQ|||" };
}
[Theory]
[MemberData(nameof(GetIncompleteHeader))]
public void GivenIncompleteHeader_WhenParse_ExceptionsShouldBeThrown(string input)
{
var exception = Assert.Throws<DataParseException>(() => _validator.ValidateMessageHeader(input));
var segmentId = input.Length < 3 ? input : input.Substring(0, 3);
Assert.Equal($"The HL7 v2 message is invalid, first segment id = {segmentId}.", exception.Message);
}
[Fact]
public void GivenIncompleteSeparators_WhenParse_ExceptionsShouldBeThrown()
{
var exception = Assert.Throws<DataParseException>(() => _validator.ValidateMessageHeader(@"MSH|||"));
Assert.Equal("MSH segment misses separators.", exception.Message);
}
[Fact]
public void GivenDuplicateSeparators_WhenParse_ExceptionsShouldBeThrown()
{
var exception = Assert.Throws<DataParseException>(() => _validator.ValidateMessageHeader(@"MSH|^~^#|"));
Assert.Equal("MSH segment contains duplicate separators.", exception.Message);
}
[Fact]
public void GivenInvalidEsacpeCharacter_WhenParse_ExceptionsShouldBeThrown()
{
var exception = Assert.Throws<DataParseException>(() => _validator.ValidateMessageHeader(@"MSH|^~#&|NES|NINTENDO|"));
Assert.Equal("Escape character should be backslash.", exception.Message);
}
}
}
| 43.909091 | 129 | 0.611594 | [
"MIT"
] | BradBarnich/FHIR-Converter | src/Microsoft.Health.Fhir.Liquid.Converter.UnitTests/Validators/Hl7v2DataValidatorTests.cs | 2,417 | C# |
using System.Collections.Generic;
using System.Linq;
using Uno.Compiler.API.Domain.IL.Members;
namespace Uno.Compiler.Core.IL.Building.Functions.Lambdas
{
class Variables
{
public readonly HashSet<Variable> Locals = new HashSet<Variable>();
public readonly HashSet<Parameter> Params = new HashSet<Parameter>();
public bool This;
public void Add(Variable local)
{
Locals.Add(local);
}
public void Add(Parameter param)
{
Params.Add(param);
}
public bool Contains(Variable local)
{
return Locals.Contains(local);
}
public bool Contains(Parameter param)
{
return Params.Contains(param);
}
public void AddThis()
{
This = true;
}
public void UnionWith(Variables other)
{
Locals.UnionWith(other.Locals);
Params.UnionWith(other.Params);
This |= other.This;
}
public static Variables Union(params Variables[] vs)
{
return Union((IEnumerable<Variables>) vs);
}
public static Variables Union(IEnumerable<Variables> vs)
{
var result = new Variables();
foreach (var v in vs)
result.UnionWith(v);
return result;
}
public static Variables Intersection(Variables v1, params Variables[] vs)
{
return Intersection(v1, (IEnumerable<Variables>) vs);
}
public static Variables Intersection(Variables v1, IEnumerable<Variables> vs)
{
var result = Union(v1);
foreach (var v2 in vs)
{
result.Locals.IntersectWith(v2.Locals);
result.Params.IntersectWith(v2.Params);
result.This &= v2.This;
}
return result;
}
}
public static class DictionaryExtensions
{
public static void IntersectWith<TKey, TValue, TValue2>(
this Dictionary<TKey, TValue> self,
Dictionary<TKey, TValue2> other)
{
var toRemove = new List<TKey>();
foreach (var key in self.Keys)
if (!other.ContainsKey(key))
toRemove.Add(key);
foreach (var key in toRemove)
self.Remove(key);
}
public static void UnionWith<TKey, TValue>(
this Dictionary<TKey, TValue> self,
Dictionary<TKey, TValue> other)
{
foreach (var kv in other)
self[kv.Key] = kv.Value;
}
}
} | 26.84 | 85 | 0.536513 | [
"MIT"
] | Nicero/uno | src/compiler/core/IL/Building/Functions/Lambdas/Variables.cs | 2,684 | C# |
using Celeste;
using Celeste.Mod;
using Mono.Cecil.Cil;
using MonoMod.Cil;
using MonoMod.Utils;
using System;
using System.Collections;
using System.Reflection;
namespace ExtendedVariants.Variants {
public class HeldDash : AbstractExtendedVariant {
// allows to check with reflection that Input.CrouchDash exists before using it.
private static FieldInfo crouchDash = typeof(Input).GetField("CrouchDash");
public override Type GetVariantType() {
return typeof(bool);
}
public override object GetDefaultVariantValue() {
return false;
}
public override object GetVariantValue() {
return Settings.HeldDash;
}
protected override void DoSetVariantValue(object value) {
Settings.HeldDash = (bool) value;
}
public override void SetLegacyVariantValue(int value) {
Settings.HeldDash = (value != 0);
}
public override void Load() {
On.Celeste.Player.DashCoroutine += modDashCoroutine;
IL.Celeste.Player.DashUpdate += modDashUpdate;
}
public override void Unload() {
On.Celeste.Player.DashCoroutine -= modDashCoroutine;
IL.Celeste.Player.DashUpdate -= modDashUpdate;
}
private IEnumerator modDashCoroutine(On.Celeste.Player.orig_DashCoroutine orig, Player self) {
// intercept the moment when the dash coroutine sends out the dash time
// so that we can extend it as long as Dash is pressed.
IEnumerator coroutine = orig.Invoke(self);
while (coroutine.MoveNext()) {
object o = coroutine.Current;
if (o != null && o.GetType() == typeof(float)) {
yield return o;
while (hasHeldDash(self) && (Input.Dash.Check || (crouchDash != null && crouchDashCheck()))) {
DynData<Player> selfData = new DynData<Player>(self);
selfData["dashAttackTimer"] = 0.15f; // hold the dash attack timer to continue breaking dash blocks and such.
selfData["gliderBoostTimer"] = 0.30f; // hold the glider boost timer to still get boosted by jellies.
yield return null;
}
} else {
yield return o;
}
}
yield break;
}
private bool crouchDashCheck() {
return Input.CrouchDash.Check;
}
/// <summary>
/// Edits the DashUpdate method in Player (called while the player is dashing).
/// </summary>
/// <param name="il">Object allowing CIL patching</param>
private void modDashUpdate(ILContext il) {
ILCursor cursor = new ILCursor(il);
Logger.Log("ExtendedVariantMode/HeldDash", $"Patching dashTrailCounter to fix animation with infinite dashes at {cursor.Index} in CIL code for DashUpdate");
// add a delegate call to modify dashTrailCounter (private variable set in DashCoroutine we can't mod with IL)
// so that we add more trails if the dash is made longer than usual
cursor.Emit(OpCodes.Ldarg_0);
cursor.Emit(OpCodes.Ldarg_0);
cursor.Emit(OpCodes.Ldfld, typeof(Player).GetField("dashTrailCounter", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance));
cursor.Emit(OpCodes.Ldarg_0);
cursor.EmitDelegate<Func<int, Player, int>>(modDashTrailCounter);
cursor.Emit(OpCodes.Stfld, typeof(Player).GetField("dashTrailCounter", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance));
}
private int modDashTrailCounter(int dashTrailCounter, Player self) {
if (hasHeldDash(self)) {
return 2; // lock the counter to 2 to have an infinite trail
}
return dashTrailCounter;
}
private bool hasHeldDash(Player self) {
// expose an "ExtendedVariantsHeldDash" DynData field to other mods.
return Settings.HeldDash || (new DynData<Player>(self).Data.TryGetValue("ExtendedVariantsHeldDash", out object o) && o is bool b && b);
}
}
}
| 41.586538 | 168 | 0.613873 | [
"MIT"
] | max4805/ExtendedVariantMode | ExtendedVariantMode/Variants/HeldDash.cs | 4,327 | C# |
namespace PythonSharp.Language
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public interface IFunction
{
object Apply(IContext context, IList<object> arguments, IDictionary<string, object> namedArguments);
}
} | 25.083333 | 109 | 0.681063 | [
"MIT"
] | ajlopez/PythonSharp | Src/PythonSharp/Language/IFunction.cs | 303 | C# |
using Newtonsoft.Json;
using R6Stats.Response;
namespace R6Stats.Stats
{
/// <summary>
/// Represents a slot of a <see cref="Leaderboard"/>
/// </summary>
public class LeaderboardSlot : BaseResponse
{
/// <summary>
/// Stats for the player in this <see cref="LeaderboardSlot"/>
/// </summary>
[JsonProperty("stats")]
public LeaderboardUserStats Stats { get; private set; }
/// <summary>
/// Leaderboard score of a player
/// </summary>
[JsonProperty("score")]
public double Score { get; private set; }
/// <summary>
/// Position of this slot in the leaderboard
/// </summary>
[JsonProperty("position")]
public int Position { get; private set; }
}
/// <summary>
/// User stats for a player in a leaderboard
/// </summary>
public class LeaderboardUserStats
{
/// <summary>
/// Level of the player
/// </summary>
[JsonProperty("level")]
public int Level { get; private set; }
/// <summary>
/// Kill/Death ratio of the player
/// </summary>
[JsonProperty("kd")]
public double KD { get; private set; }
/// <summary>
/// Win/Lose ratio of the player
/// </summary>
[JsonProperty("wl")]
public double WL { get; private set; }
}
}
| 26.259259 | 70 | 0.537377 | [
"MIT"
] | Cenngo/R6Stat-Sharp | R6Stat-Sharp/Stats/LeaderboardSlot.cs | 1,420 | C# |
using NLog;
using NLog.Layouts;
namespace MBBSDASM.Logging
{
public class CustomLogger : Logger
{
static CustomLogger()
{
var config = new NLog.Config.LoggingConfiguration();
//Setup Console Logging
var logconsole = new NLog.Targets.ConsoleTarget("logconsole")
{
Layout = Layout.FromString("${shortdate}\t${time}\t${message}")
};
config.AddTarget(logconsole);
config.AddRuleForAllLevels(logconsole);
LogManager.Configuration = config;
}
}
}
| 23.76 | 79 | 0.572391 | [
"BSD-2-Clause"
] | enusbaum/MBBSDASM | MBBSDASM/Logging/CustomLogger.cs | 596 | C# |
using System.IO;
using System.Text;
using System.Threading.Tasks;
namespace src
{
public static class FileIO
{
public static async Task Read(string path)
{
using var sr = new StreamReader(Path.GetFullPath(path), System.Text.Encoding.UTF8);
await sr.ReadToEndAsync();
}
public static async Task Write(string path, StringBuilder data)
{
await Write(path, data.ToString());
}
public static async Task Write(string path, string data)
{
using var sw = new StreamWriter(Path.GetFullPath(path), false, System.Text.Encoding.UTF8);
await sw.WriteAsync(data);
}
}
}
| 26.185185 | 102 | 0.60396 | [
"MIT"
] | Ruchi12377/RPGTest | CSMaker/Assets/src/FileIO.cs | 707 | C# |
using System.Windows;
namespace BIDSid_SerCon
{
/// <summary>
/// App.xaml の相互作用ロジック
/// </summary>
public partial class App : Application
{
}
}
| 13.25 | 40 | 0.641509 | [
"MIT"
] | TetsuOtter/BIDSid_SerCon | BIDSid_SerCon/App.xaml.cs | 179 | C# |
using System;
using AutoFixture;
using AutoFixture.Kernel;
using AutoFixtureUnitTest.Kernel;
using Xunit;
namespace AutoFixtureUnitTest
{
public class UriGeneratorTest
{
[Fact]
public void SutIsSpecimenBuilder()
{
// Arrange
// Act
var sut = new UriGenerator();
// Assert
Assert.IsAssignableFrom<ISpecimenBuilder>(sut);
}
[Fact]
public void CreateWithNullRequestReturnsCorrectResult()
{
// Arrange
var sut = new UriGenerator();
// Act
var dummyContext = new DelegatingSpecimenContext();
var result = sut.Create(null, dummyContext);
// Assert
Assert.Equal(new NoSpecimen(), result);
}
[Fact]
public void CreateWithNullContextThrows()
{
// Arrange
var sut = new UriGenerator();
var dummyRequest = new object();
// Act & assert
Assert.Throws<ArgumentNullException>(() => sut.Create(dummyRequest, null));
}
[Fact]
public void CreateWithNonUriRequestReturnsCorrectResult()
{
// Arrange
var sut = new UriGenerator();
var dummyRequest = new object();
// Act
var dummyContext = new DelegatingSpecimenContext();
var result = sut.Create(dummyRequest, dummyContext);
// Assert
var expectedResult = new NoSpecimen();
Assert.Equal(expectedResult, result);
}
[Fact]
public void CreateWhenUriSchemeReceivedFromContextIsNullReturnsCorrectResult()
{
// Arrange
var request = typeof(Uri);
object expectedValue = null;
var context = new DelegatingSpecimenContext
{
OnResolve = r => typeof(UriScheme).Equals(r) ? expectedValue : new NoSpecimen()
};
var sut = new UriGenerator();
// Act & assert
var result = sut.Create(request, context);
var expectedResult = new NoSpecimen();
Assert.Equal(expectedResult, result);
}
[Fact]
public void CreateWhenStringReceivedFromContextIsNullReturnsCorrectResult()
{
// Arrange
var request = typeof(Uri);
object expectedValue = null;
var context = new DelegatingSpecimenContext
{
OnResolve = r =>
{
if (typeof(UriScheme).Equals(r))
{
return new UriScheme();
}
if (typeof(string).Equals(r))
{
return expectedValue;
}
return new NoSpecimen();
}
};
var sut = new UriGenerator();
// Act & assert
var result = sut.Create(request, context);
var expectedResult = new NoSpecimen();
Assert.Equal(expectedResult, result);
}
[Fact]
public void CreateReturnsUriWithSchemeReceivedFromContext()
{
// Arrange
var request = typeof(Uri);
string expectedScheme = "https";
var context = new DelegatingSpecimenContext
{
OnResolve = r =>
{
if (typeof(UriScheme).Equals(r))
{
return new UriScheme(expectedScheme);
}
if (typeof(string).Equals(r))
{
return Guid.NewGuid().ToString();
}
return new NoSpecimen();
}
};
var sut = new UriGenerator();
// Act
var result = (Uri)sut.Create(request, context);
// Assert
Assert.Equal(expectedScheme, result.Scheme);
}
[Fact]
public void CreateReturnsUriWithAuthorityReceivedFromContext()
{
// Arrange
var request = typeof(Uri);
object expectedAuthority = Guid.NewGuid().ToString();
var context = new DelegatingSpecimenContext
{
OnResolve = r =>
{
if (typeof(UriScheme).Equals(r))
{
return new UriScheme();
}
if (typeof(string).Equals(r))
{
return expectedAuthority;
}
return new NoSpecimen();
}
};
var sut = new UriGenerator();
// Act
var result = (Uri)sut.Create(request, context);
// Assert
Assert.Equal(expectedAuthority, result.Authority);
}
[Fact]
public void CreateWithUriRequestReturnsCorrectResult()
{
// Arrange
var request = typeof(Uri);
object expectedUriScheme = new UriScheme("ftp");
object expectedAuthority = Guid.NewGuid().ToString();
var context = new DelegatingSpecimenContext
{
OnResolve = r =>
{
if (typeof(UriScheme).Equals(r))
{
return expectedUriScheme;
}
if (typeof(string).Equals(r))
{
return expectedAuthority;
}
return new NoSpecimen();
}
};
var sut = new UriGenerator();
// Act
var result = (Uri)sut.Create(request, context);
// Assert
var expectedUri = new Uri(expectedUriScheme + "://" + expectedAuthority);
Assert.Equal(expectedUri, result);
}
}
}
| 30.883249 | 95 | 0.469757 | [
"MIT"
] | AutoFixture/AutoFixture | Src/AutoFixtureUnitTest/UriGeneratorTest.cs | 6,086 | C# |
using JetBrains.Annotations;
using Txt.Core;
namespace Txt.ABNF
{
/// <summary>Creates instances of the <see cref="RepetitionLexer" /> class.</summary>
public class RepetitionLexerFactory : IRepetitionLexerFactory
{
[NotNull]
public static RepetitionLexerFactory Default { get; } = new RepetitionLexerFactory();
/// <inheritdoc />
public ILexer<Repetition> Create(ILexer<Element> lexer, int lowerBound, int upperBound)
{
return new RepetitionLexer(lexer, lowerBound, upperBound);
}
}
}
| 29.736842 | 95 | 0.669027 | [
"MIT"
] | StevenLiekens/SLANG | src/Txt.ABNF/RepetitionLexerFactory.cs | 567 | C# |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201
{
using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell;
/// <summary>
/// A PowerShell PSTypeConverter to support converting to an instance of <see cref="ScriptExecutionProperties" />
/// </summary>
public partial class ScriptExecutionPropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter
{
/// <summary>
/// Determines if the converter can convert the <see cref="sourceValue"/> parameter to the <see cref="destinationType" />
/// parameter.
/// </summary>
/// <param name="sourceValue">the <see cref="System.Object"/> to convert from</param>
/// <param name="destinationType">the <see cref="System.Type" /> to convert to</param>
/// <returns>
/// <c>true</c> if the converter can convert the <see cref="sourceValue"/> parameter to the <see cref="destinationType" />
/// parameter, otherwise <c>false</c>.
/// </returns>
public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue);
/// <summary>
/// Determines if the converter can convert the <see cref="sourceValue"/> parameter to the <see cref="destinationType" />
/// parameter.
/// </summary>
/// <param name="sourceValue">the <see cref="System.Object" /> instance to check if it can be converted to the <see cref="ScriptExecutionProperties"
/// /> type.</param>
/// <returns>
/// <c>true</c> if the instance could be converted to a <see cref="ScriptExecutionProperties" /> type, otherwise <c>false</c>
/// </returns>
public static bool CanConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return true;
}
global::System.Type type = sourceValue.GetType();
if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type))
{
// we say yest to PSObjects
return true;
}
if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type))
{
// we say yest to Hashtables/dictionaries
return true;
}
try
{
if (null != sourceValue.ToJsonString())
{
return true;
}
}
catch
{
// Not one of our objects
}
try
{
string text = sourceValue.ToString()?.Trim();
return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonType.Object;
}
catch
{
// Doesn't look like it can be treated as JSON
}
return false;
}
/// <summary>
/// Determines if the <see cref="sourceValue" /> parameter can be converted to the <see cref="destinationType" /> parameter
/// </summary>
/// <param name="sourceValue">the <see cref="System.Object"/> to convert from</param>
/// <param name="destinationType">the <see cref="System.Type" /> to convert to</param>
/// <returns>
/// <c>true</c> if the converter can convert the <see cref="sourceValue" /> parameter to the <see cref="destinationType" />
/// parameter, otherwise <c>false</c>
/// </returns>
public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false;
/// <summary>
/// Converts the <see cref="sourceValue" /> parameter to the <see cref="destinationType" /> parameter using <see cref="formatProvider"
/// /> and <see cref="ignoreCase" />
/// </summary>
/// <param name="sourceValue">the <see cref="System.Object"/> to convert from</param>
/// <param name="destinationType">the <see cref="System.Type" /> to convert to</param>
/// <param name="formatProvider">not used by this TypeConverter.</param>
/// <param name="ignoreCase">when set to <c>true</c>, will ignore the case when converting.</param>
/// <returns>
/// an instance of <see cref="ScriptExecutionProperties" />, or <c>null</c> if there is no suitable conversion.
/// </returns>
public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue);
/// <summary>
/// Converts the <see cref="sourceValue" /> parameter to the <see cref="destinationType" /> parameter using <see cref="formatProvider"
/// /> and <see cref="ignoreCase" />
/// </summary>
/// <param name="sourceValue">the value to convert into an instance of <see cref="ScriptExecutionProperties" />.</param>
/// <returns>
/// an instance of <see cref="ScriptExecutionProperties" />, or <c>null</c> if there is no suitable conversion.
/// </returns>
public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.IScriptExecutionProperties ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.IScriptExecutionProperties).IsAssignableFrom(type))
{
return sourceValue;
}
try
{
return ScriptExecutionProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());;
}
catch
{
// Unable to use JSON pattern
}
if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type))
{
return ScriptExecutionProperties.DeserializeFromPSObject(sourceValue);
}
if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type))
{
return ScriptExecutionProperties.DeserializeFromDictionary(sourceValue);
}
return null;
}
/// <summary>NotImplemented -- this will return <c>null</c></summary>
/// <param name="sourceValue">the <see cref="System.Object"/> to convert from</param>
/// <param name="destinationType">the <see cref="System.Type" /> to convert to</param>
/// <param name="formatProvider">not used by this TypeConverter.</param>
/// <param name="ignoreCase">when set to <c>true</c>, will ignore the case when converting.</param>
/// <returns>will always return <c>null</c>.</returns>
public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null;
}
} | 52.367347 | 243 | 0.59457 | [
"MIT"
] | Agazoth/azure-powershell | src/VMware/generated/api/Models/Api20211201/ScriptExecutionProperties.TypeConverter.cs | 7,552 | C# |
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using dotnetnepal.Services;
using dotnetnepal.Models;
namespace dotnetnepal.ViewComponents
{
public class NewsViewComponent : ViewComponent
{
private readonly NewsFeedService newsService;
public NewsViewComponent(NewsFeedService newsService)
{
this.newsService = newsService;
}
public async Task<IViewComponentResult> InvokeAsync(int quantity)
{
var feed = await newsService.GetFeed();
var items = feed.Take(quantity);
return View(items);
}
}
}
| 23.965517 | 73 | 0.676259 | [
"MIT"
] | dotnetnepal/dotnetnepal-website | src/ViewComponents/NewsViewComponent.cs | 697 | C# |
using System;
/* 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
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace Sys.Workflow.Engine.Impl.Bpmn.Behavior
{
using Sys.Workflow.Engine.Delegate;
using Sys.Workflow.Engine.Impl.Bpmn.Helper;
using Sys.Workflow.Engine.Impl.Persistence.Entity;
///
///
[Serializable]
public class ErrorEndEventActivityBehavior : FlowNodeActivityBehavior
{
private const long serialVersionUID = 1L;
protected internal string errorCode;
public ErrorEndEventActivityBehavior(string errorCode)
{
this.errorCode = errorCode;
}
public override void Execute(IExecutionEntity execution)
{
ErrorPropagation.PropagateError(errorCode, execution);
}
public virtual string ErrorCode
{
get
{
return errorCode;
}
set
{
this.errorCode = value;
}
}
}
} | 26.732143 | 75 | 0.639279 | [
"Apache-2.0"
] | 18502079446/cusss | NActiviti/Sys.Bpm.Engine/Engine/impl/bpmn/behavior/ErrorEndEventActivityBehavior.cs | 1,499 | C# |
using System.Collections;
using System.Threading;
using System.Threading.Tasks;
using MongoDB.Driver;
namespace HotChocolate.Data.MongoDb
{
/// <summary>
/// A executable that is based on <see cref="IAggregateFluent{TInput}"/>
/// </summary>
/// <typeparam name="T">The entity type</typeparam>
public class MongoDbAggregateFluentExecutable<T> : MongoDbExecutable<T>
{
private readonly IAggregateFluent<T> _aggregate;
public MongoDbAggregateFluentExecutable(IAggregateFluent<T> aggregate)
{
_aggregate = aggregate;
}
/// <inheritdoc />
public override object Source => _aggregate;
/// <inheritdoc />
public override async ValueTask<IList> ToListAsync(CancellationToken cancellationToken) =>
await BuildPipeline()
.ToListAsync(cancellationToken)
.ConfigureAwait(false);
/// <inheritdoc />
public override async ValueTask<object?> FirstOrDefaultAsync(
CancellationToken cancellationToken) =>
await BuildPipeline()
.FirstOrDefaultAsync(cancellationToken)
.ConfigureAwait(false);
/// <inheritdoc />
public override async ValueTask<object?> SingleOrDefaultAsync(
CancellationToken cancellationToken) =>
await BuildPipeline()
.SingleOrDefaultAsync(cancellationToken)
.ConfigureAwait(false);
/// <inheritdoc />
public override string Print() => BuildPipeline().ToString() ?? "";
/// <summary>
/// Applies filtering sorting and projections on the <see cref="IExecutable{T}.Source"/>
/// </summary>
/// <returns>A aggregate fluent including the configuration of this executable</returns>
public IAggregateFluent<T> BuildPipeline()
{
IAggregateFluent<T> pipeline = _aggregate;
if (Sorting is not null)
{
pipeline = pipeline.Sort(Sorting.ToSortDefinition<T>());
}
if (Filters is not null)
{
pipeline = pipeline.Match(Filters.ToFilterDefinition<T>());
}
if (Projection is not null)
{
pipeline = pipeline.Project<T>(Projection.ToProjectionDefinition<T>());
}
return pipeline;
}
}
}
| 33.191781 | 98 | 0.596781 | [
"MIT"
] | AccountTechnologies/hotchocolate | src/HotChocolate/MongoDb/src/Data/Execution/MongoDbAggregateFluentExecutable.cs | 2,423 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Msn.InteropDemo.Common.OperationResults
{
public class OperationError
{
public string ErrorCode { get; set; }
public string ErrorDescription { get; set; }
public string GetError()
{
var str = string.Empty;
if (!string.IsNullOrWhiteSpace(ErrorCode))
{
return ErrorCode + ": " + ErrorDescription;
}
else
{
return ErrorDescription;
}
}
public override string ToString()
{
return GetError();
}
}
}
| 20.857143 | 59 | 0.543836 | [
"Apache-2.0"
] | SALUD-AR/Open-RSD | Msn.InteropDemo.Common/OperationResults/OperationError.cs | 732 | C# |
namespace Enyim.Caching.Memcached.Results.Factories
{
public interface IMutateOperationResultFactory
{
IMutateOperationResult Create();
}
}
#region [ License information ]
/* ************************************************************
*
* © 2010 Attila Kiskó (aka Enyim), © 2016 CNBlogs, © 2020 VIEApps.net
*
* 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
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* ************************************************************/
#endregion
| 37.035714 | 79 | 0.593057 | [
"Apache-2.0"
] | shortendarragh-mt/Enyim.Caching | Memcached/Results/Factories/IMutateOperationResultFactory.cs | 1,016 | C# |
namespace NEventStore.Diagnostics
{
using System;
using System.Diagnostics;
// PerformanceCounters are not cross platform
#if NET461
internal class PerformanceCounters : IDisposable
{
private const string CategoryName = "NEventStore";
private const string TotalCommitsName = "Total Commits";
private const string CommitsRateName = "Commits/Sec";
private const string AvgCommitDuration = "Average Commit Duration";
private const string AvgCommitDurationBase = "Average Commit Duration Base";
private const string TotalEventsName = "Total Events";
private const string EventsRateName = "Events/Sec";
private const string TotalSnapshotsName = "Total Snapshots";
private const string SnapshotsRateName = "Snapshots/Sec";
private readonly PerformanceCounter _avgCommitDuration;
private readonly PerformanceCounter _avgCommitDurationBase;
private readonly PerformanceCounter _commitsRate;
private readonly PerformanceCounter _eventsRate;
private readonly PerformanceCounter _snapshotsRate;
private readonly PerformanceCounter _totalCommits;
private readonly PerformanceCounter _totalEvents;
private readonly PerformanceCounter _totalSnapshots;
static PerformanceCounters()
{
if (PerformanceCounterCategory.Exists(CategoryName))
{
return;
}
var counters = new CounterCreationDataCollection
{
new CounterCreationData(TotalCommitsName, "Total number of commits persisted", PerformanceCounterType.NumberOfItems32),
new CounterCreationData(CommitsRateName, "Rate of commits persisted per second", PerformanceCounterType.RateOfCountsPerSecond32),
new CounterCreationData(AvgCommitDuration, "Average duration for each commit", PerformanceCounterType.AverageTimer32),
new CounterCreationData(AvgCommitDurationBase, "Average duration base for each commit", PerformanceCounterType.AverageBase),
new CounterCreationData(TotalEventsName, "Total number of events persisted", PerformanceCounterType.NumberOfItems32),
new CounterCreationData(EventsRateName, "Rate of events persisted per second", PerformanceCounterType.RateOfCountsPerSecond32),
new CounterCreationData(TotalSnapshotsName, "Total number of snapshots persisted", PerformanceCounterType.NumberOfItems32),
new CounterCreationData(SnapshotsRateName, "Rate of snapshots persisted per second", PerformanceCounterType.RateOfCountsPerSecond32),
};
// TODO: add other useful counts such as:
//
// * Total Commit Bytes
// * Average Commit Bytes
// * Total Queries
// * Queries Per Second
// * Average Query Duration
// * Commits per Query (Total / average / per second)
// * Events per Query (Total / average / per second)
//
// Some of these will involve hooking into other parts of the NEventStore
PerformanceCounterCategory.Create(CategoryName, "NEventStore Event-Sourcing Persistence", PerformanceCounterCategoryType.MultiInstance, counters);
}
public PerformanceCounters(string instanceName)
{
_totalCommits = new PerformanceCounter(CategoryName, TotalCommitsName, instanceName, false);
_commitsRate = new PerformanceCounter(CategoryName, CommitsRateName, instanceName, false);
_avgCommitDuration = new PerformanceCounter(CategoryName, AvgCommitDuration, instanceName, false);
_avgCommitDurationBase = new PerformanceCounter(CategoryName, AvgCommitDurationBase, instanceName, false);
_totalEvents = new PerformanceCounter(CategoryName, TotalEventsName, instanceName, false);
_eventsRate = new PerformanceCounter(CategoryName, EventsRateName, instanceName, false);
_totalSnapshots = new PerformanceCounter(CategoryName, TotalSnapshotsName, instanceName, false);
_snapshotsRate = new PerformanceCounter(CategoryName, SnapshotsRateName, instanceName, false);
}
public void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}
public void CountCommit(int eventsCount, long elapsedMilliseconds)
{
_totalCommits.Increment();
_commitsRate.Increment();
_avgCommitDuration.IncrementBy(elapsedMilliseconds);
_avgCommitDurationBase.Increment();
_totalEvents.IncrementBy(eventsCount);
_eventsRate.IncrementBy(eventsCount);
}
public void CountSnapshot()
{
_totalSnapshots.Increment();
_snapshotsRate.Increment();
}
~PerformanceCounters()
{
Dispose(false);
}
protected virtual void Dispose(bool disposing)
{
_totalCommits.Dispose();
_commitsRate.Dispose();
_avgCommitDuration.Dispose();
_avgCommitDurationBase.Dispose();
_totalEvents.Dispose();
_eventsRate.Dispose();
_totalSnapshots.Dispose();
_snapshotsRate.Dispose();
}
}
#endif
} | 47.886957 | 159 | 0.659706 | [
"MIT"
] | NEventStore/NEventStore | src/NEventStore/Diagnostics/PerformanceCounters.cs | 5,507 | C# |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Text;
using Microsoft.SourceBrowser.Common;
namespace Microsoft.SourceBrowser.HtmlGenerator
{
public partial class DocumentGenerator
{
public ProjectGenerator projectGenerator;
public Document Document;
public string documentDestinationFilePath;
public string relativePathToRoot;
public string documentRelativeFilePathWithoutHtmlExtension;
private Classification classifier;
public SourceText Text;
public SyntaxNode Root;
public SemanticModel SemanticModel;
public HashSet<ISymbol> DeclaredSymbols;
public object SemanticFactsService;
public object SyntaxFactsService;
private Func<SemanticModel, SyntaxNode, CancellationToken, bool> isWrittenToDelegate;
private Func<SyntaxToken, SyntaxNode> getBindableParentDelegate;
public DocumentGenerator(
ProjectGenerator projectGenerator,
Document document)
{
this.projectGenerator = projectGenerator;
this.Document = document;
}
public async Task Generate()
{
if (Configuration.CalculateRoslynSemantics)
{
this.Text = await Document.GetTextAsync();
this.Root = await Document.GetSyntaxRootAsync();
this.SemanticModel = await Document.GetSemanticModelAsync();
this.SemanticFactsService = WorkspaceHacks.GetSemanticFactsService(this.Document);
this.SyntaxFactsService = WorkspaceHacks.GetSyntaxFactsService(this.Document);
var semanticFactsServiceType = SemanticFactsService.GetType();
var isWrittenTo = semanticFactsServiceType.GetMethod("IsWrittenTo");
this.isWrittenToDelegate = (Func<SemanticModel, SyntaxNode, CancellationToken, bool>)
Delegate.CreateDelegate(typeof(Func<SemanticModel, SyntaxNode, CancellationToken, bool>), SemanticFactsService, isWrittenTo);
var syntaxFactsServiceType = SyntaxFactsService.GetType();
var getBindableParent = syntaxFactsServiceType.GetMethod("TryGetBindableParent");
this.getBindableParentDelegate = (Func<SyntaxToken, SyntaxNode>)
Delegate.CreateDelegate(typeof(Func<SyntaxToken, SyntaxNode>), SyntaxFactsService, getBindableParent);
this.DeclaredSymbols = new HashSet<ISymbol>();
Interlocked.Increment(ref projectGenerator.DocumentCount);
Interlocked.Add(ref projectGenerator.LinesOfCode, Text.Lines.Count);
Interlocked.Add(ref projectGenerator.BytesOfCode, Text.Length);
}
CalculateDocumentDestinationPath();
CalculateRelativePathToRoot();
// add the file itself as a "declared symbol", so that clicking on document in search
// results redirects to the document
ProjectGenerator.AddDeclaredSymbolToRedirectMap(
this.projectGenerator.SymbolIDToListOfLocationsMap,
SymbolIdService.GetId(this.Document),
documentRelativeFilePathWithoutHtmlExtension,
0);
if (File.Exists(documentDestinationFilePath))
{
// someone already generated this file, likely a shared linked file from elsewhere
return;
}
this.classifier = new Classification();
Log.Write(documentDestinationFilePath);
try
{
var directoryName = Path.GetDirectoryName(documentDestinationFilePath);
var sanitized = Paths.SanitizeFolder(directoryName);
if (directoryName != sanitized)
{
Log.Exception("Illegal characters in path: " + directoryName + " Project: " + this.projectGenerator.AssemblyName);
}
if (Configuration.CreateFoldersOnDisk)
{
Directory.CreateDirectory(directoryName);
}
}
catch (PathTooLongException)
{
// there's one case where a path is too long - we don't care enough about it
return;
}
if (Configuration.WriteDocumentsToDisk)
{
using (var streamWriter = new StreamWriter(
documentDestinationFilePath,
append: false,
encoding: Encoding.UTF8))
{
await GenerateHtml(streamWriter);
}
}
else
{
using (var memoryStream = new MemoryStream())
using (var streamWriter = new StreamWriter(memoryStream))
{
await GeneratePre(streamWriter);
}
}
}
private void CalculateDocumentDestinationPath()
{
documentRelativeFilePathWithoutHtmlExtension = Paths.GetRelativeFilePathInProject(Document);
documentDestinationFilePath = Path.Combine(ProjectDestinationFolder, documentRelativeFilePathWithoutHtmlExtension) + ".html";
}
private void CalculateRelativePathToRoot()
{
this.relativePathToRoot = Paths.CalculateRelativePathToRoot(documentDestinationFilePath, SolutionDestinationFolder);
}
private async Task GenerateHtml(StreamWriter writer)
{
var title = Document.Name;
var lineCount = Text.Lines.Count;
// if the document is very long, pregenerate line numbers statically
// to make the page load faster and avoid JavaScript cost
bool pregenerateLineNumbers = IsLargeFile(lineCount);
// pass a value larger than 0 to generate line numbers in JavaScript (to reduce HTML size)
var prefix = Markup.GetDocumentPrefix(title, relativePathToRoot, pregenerateLineNumbers ? 0 : lineCount);
writer.Write(prefix);
GenerateHeader(writer.WriteLine);
var ranges = (await classifier.Classify(Document, Text))?.ToArray();
// pass a value larger than 0 to generate line numbers statically at HTML generation time
var table = Markup.GetTablePrefix(
DocumentUrl,
pregenerateLineNumbers ? lineCount : 0,
GenerateGlyphs(ranges));
writer.WriteLine(table);
GeneratePre(ranges, writer, lineCount);
var suffix = Markup.GetDocumentSuffix();
writer.WriteLine(suffix);
}
private ISymbol GetSymbolForRange(Classification.Range r)
{
var position = r.ClassifiedSpan.TextSpan.Start;
var token = Root.FindToken(position, findInsideTrivia: true);
return SemanticModel.GetDeclaredSymbol(token.Parent);
}
private string GenerateGlyphs(IEnumerable<Classification.Range> ranges)
{
if (!SolutionGenerator.LoadPlugins)
{
return "";
}
var lines = new Dictionary<int, HashSet<string>>();
int lineNumber = -1;
ISymbol symbol = null;
Dictionary<string, string> context = new Dictionary<string, string>
{
{ MEF.ContextKeys.FilePath, Document.FilePath },
{ MEF.ContextKeys.LineNumber, "-1" }
};
void maybeLog(string g)
{
if (!string.IsNullOrWhiteSpace(g))
{
if (!lines.TryGetValue(lineNumber, out HashSet<string> lineGlyphs))
{
lineGlyphs = new HashSet<string>();
lines.Add(lineNumber, lineGlyphs);
}
lineGlyphs.Add(g);
}
}
string VisitText(MEF.ITextVisitor v)
{
try
{
return v.Visit(Text.Lines[lineNumber - 1].ToString(), context);
}
catch (Exception ex)
{
Log.Write("Exception in text visitor: " + ex.Message);
return null;
}
}
string VisitSymbol(MEF.ISymbolVisitor v)
{
try
{
return symbol.Accept(new MEF.SymbolVisitorWrapper(v, context));
}
catch (Exception ex)
{
Log.Write("Exception in symbol visitor: " + ex.Message);
return null;
}
}
foreach (var r in ranges)
{
var pos = r.ClassifiedSpan.TextSpan.Start;
var token = Root.FindToken(pos, true);
var nextLineNumber = token.SyntaxTree.GetLineSpan(token.Span).StartLinePosition.Line + 1;
if (nextLineNumber != lineNumber)
{
lineNumber = nextLineNumber;
context[MEF.ContextKeys.LineNumber] = lineNumber.ToString();
maybeLog(string.Concat(projectGenerator.PluginTextVisitors.Select(VisitText)));
}
symbol = SemanticModel.GetDeclaredSymbol(token.Parent);
if (symbol != null)
{
maybeLog(string.Concat(projectGenerator.PluginSymbolVisitors.Select(VisitSymbol)));
}
}
if (lines.Any())
{
var sb = new StringBuilder();
for (var i = 1; i <= lines.Keys.Max(); i++)
{
if (lines.TryGetValue(i, out HashSet<string> glyphs))
{
foreach (var g in glyphs)
{
sb.Append(g);
}
}
sb.Append("<br/>");
}
return sb.ToString();
}
else
{
return string.Empty;
}
}
private string DocumentUrl => Document.Project.AssemblyName + "/" + documentRelativeFilePathWithoutHtmlExtension.Replace('\\', '/');
private void GenerateHeader(Action<string> writeLine)
{
Markup.WriteLinkPanel(
writeLine,
fileLink: (Display: documentRelativeFilePathWithoutHtmlExtension, Url: "/#" + DocumentUrl),
webAccessUrl: projectGenerator.GetWebAccessUrl(Document.FilePath),
projectLink: (Display: projectGenerator.ProjectSourcePath, Url: "/#" + Document.Project.AssemblyName, projectGenerator.AssemblyName));
}
private async Task GeneratePre(StreamWriter writer, int lineCount = 0)
{
var ranges = await classifier.Classify(Document, Text);
GeneratePre(ranges, writer, lineCount);
}
private void GeneratePre(IEnumerable<Classification.Range> ranges, StreamWriter writer, int lineCount = 0)
{
if (ranges == null)
{
// if there was an error in Roslyn, don't fail the entire index, just return
return;
}
foreach (var range in ranges)
{
string html = GenerateRange(writer, range, lineCount);
writer.Write(html);
}
}
private bool IsLargeFile(int lineCount)
{
return lineCount > 30000;
}
private string GenerateRange(StreamWriter writer, Classification.Range range, int lineCount = 0)
{
var html = range.Text;
html = Markup.HtmlEscape(html);
bool isLargeFile = IsLargeFile(lineCount);
string classAttributeValue = GetClassAttribute(html, range);
HtmlElementInfo hyperlinkInfo = GenerateLinks(range, isLargeFile);
if (hyperlinkInfo == null)
{
if (classAttributeValue == null || isLargeFile)
{
return html;
}
if (classAttributeValue == "k")
{
return "<b>" + html + "</b>";
}
}
var sb = new StringBuilder();
var elementName = "span";
if (hyperlinkInfo != null)
{
elementName = hyperlinkInfo.Name;
}
sb.Append("<").Append(elementName);
bool overridingClassAttributeSpecified = false;
if (hyperlinkInfo != null)
{
foreach (var attribute in hyperlinkInfo.Attributes)
{
AddAttribute(sb, attribute.Key, attribute.Value);
if (attribute.Key == "class")
{
overridingClassAttributeSpecified = true;
}
}
}
if (!overridingClassAttributeSpecified)
{
AddAttribute(sb, "class", classAttributeValue);
}
sb.Append('>');
html = AddIdSpanForImplicitConstructorIfNecessary(hyperlinkInfo, html);
sb.Append(html);
sb.Append("</").Append(elementName).Append(">");
html = sb.ToString();
if (hyperlinkInfo?.DeclaredSymbol != null)
{
writer.Flush();
long streamPosition = writer.BaseStream.Length;
streamPosition += html.IndexOf(hyperlinkInfo.Attributes["id"] + ".html", StringComparison.Ordinal);
projectGenerator.AddDeclaredSymbol(
hyperlinkInfo.DeclaredSymbol,
hyperlinkInfo.DeclaredSymbolId,
documentRelativeFilePathWithoutHtmlExtension,
streamPosition);
}
return html;
}
private string AddIdSpanForImplicitConstructorIfNecessary(HtmlElementInfo hyperlinkInfo, string html)
{
if (hyperlinkInfo?.DeclaredSymbol != null)
{
if (hyperlinkInfo.DeclaredSymbol is INamedTypeSymbol namedTypeSymbol)
{
var implicitInstanceConstructor = namedTypeSymbol.Constructors.FirstOrDefault(c => !c.IsStatic && c.IsImplicitlyDeclared);
if (implicitInstanceConstructor != null)
{
var symbolId = SymbolIdService.GetId(implicitInstanceConstructor);
html = Markup.Tag("span", html, new Dictionary<string, string> { { "id", symbolId } });
projectGenerator.AddDeclaredSymbol(
implicitInstanceConstructor,
symbolId,
documentRelativeFilePathWithoutHtmlExtension,
0);
}
}
}
return html;
}
private void AddAttribute(StringBuilder sb, string name, string value)
{
if (value != null)
{
sb.Append(" ").Append(name).Append("=\"").Append(value).Append("\"");
}
}
}
}
| 38.372315 | 151 | 0.534457 | [
"Apache-2.0"
] | Alex-ABPerson/PSSourceBrowser | src/HtmlGenerator/Pass1-Generation/DocumentGenerator.cs | 16,080 | C# |
using Microsoft.Extensions.Options;
using MongoDB.Bson.Serialization;
using MongoDB.Driver;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading;
using System.Threading.Tasks;
namespace Lefebvre.eLefebvreOnContainers.Services.Google.Account.API.Infrastructure
{
using Models;
using BuildingBlocks.EventBus.Abstractions;
using BuildingBlocks.EventBus.Events;
using BuildingBlocks.IntegrationEventLogMongoDB;
//mirar https://www.mongodb.com/blog/post/working-with-mongodb-transactions-with-c-and-the-net-framework
public class GoogleAccountContext : IMongoDbContext, IIntegrationEventLogContextMongoDB
{
public IMongoDatabase Database { get; }
public IClientSessionHandle Session { get; private set; }
private readonly IMongoClient _client = null;
private readonly List<Type> _eventTypes;
private readonly IEventBus _eventBus;
private readonly IOptions<GoogleAccountSettings> _settings;
public GoogleAccountContext(
IOptions<GoogleAccountSettings> settings,
IEventBus eventBus
)
{
_eventBus = eventBus ?? throw new ArgumentNullException(nameof(eventBus));
_settings = settings;
_client = new MongoClient(settings.Value.ConnectionString);
if (_client != null)
Database = _client.GetDatabase(settings.Value.Database);
_eventTypes = Assembly.Load(Assembly.GetEntryAssembly().FullName)
.GetTypes()
.Where(t => t.Name.EndsWith(nameof(IntegrationEvent), StringComparison.CurrentCulture))
.ToList();
ClassMapping();
}
private static void ClassMapping()
{
if (!BsonClassMap.IsClassMapRegistered(typeof(IntegrationEventLogEntry))) { BsonClassMap.RegisterClassMap<IntegrationEventLogEntry>(); }
if (!BsonClassMap.IsClassMapRegistered(typeof(GoogleAccountUser))) { BsonClassMap.RegisterClassMap<GoogleAccountUser>(); }
if (!BsonClassMap.IsClassMapRegistered(typeof(Provider))) { BsonClassMap.RegisterClassMap<Provider>(); }
}
public IMongoCollection<GoogleAccountUser> UserGoogleAccounts => Database.GetCollection<GoogleAccountUser>(_settings.Value.Collection);
public IMongoCollection<GoogleAccountUser> UserGoogleAccountsTransaction(IClientSessionHandle session)
{
return session.Client.GetDatabase(_settings.Value.Database).GetCollection<GoogleAccountUser>(_settings.Value.Collection);
}
// Se paso a googleAccountScope
public IMongoCollection<Provider> ProviderContext => Database.GetCollection<Provider>(_settings.Value.CollectionProvider);
public IMongoCollection<Provider> ProvidersTransaction(IClientSessionHandle session)
{
return session.Client.GetDatabase(_settings.Value.Database).GetCollection<Provider>(_settings.Value.CollectionProvider);
}
public IMongoCollection<IntegrationEventLogEntry> IntegrationEventLogs
{
get { return Database.GetCollection<IntegrationEventLogEntry>(_settings.Value.CollectionEvents); }
}
public IMongoCollection<IntegrationEventLogEntry> IntegrationEventLogsTransaction(IClientSessionHandle session)
{
return session.Client.GetDatabase(_settings.Value.Database).GetCollection<IntegrationEventLogEntry>(_settings.Value.CollectionEvents);
}
public async Task PublishThroughEventBusAsync(IntegrationEvent evt, IClientSessionHandle session)
{
try
{
await MarkEventAsInProgressAsync(evt.Id, session);
_eventBus.Publish(evt);
await MarkEventAsPublishedAsync(evt.Id, session);
}
catch (Exception)
{
await MarkEventAsFailedAsync(evt.Id, session);
}
}
private Task UpdateEventStatus(Guid eventId, EventStateEnum status, IClientSessionHandle session)
{
var filter = Builders<IntegrationEventLogEntry>.Filter.Eq(u => u.EventId, eventId);
var eventLogEntry = IntegrationEventLogsTransaction(session).Find(filter).Single();
var builder = Builders<IntegrationEventLogEntry>.Update;
var update = builder.Set(u => u.State, status);
if (status == EventStateEnum.InProgress)
eventLogEntry.TimesSent++;
return IntegrationEventLogsTransaction(session).UpdateOneAsync(filter, update);
}
public async Task<IEnumerable<IntegrationEventLogEntry>> RetrieveEventLogsPendingToPublishAsync(Guid transactionId)
{
var builder = Builders<IntegrationEventLogEntry>.Filter;
var filter = Builders<IntegrationEventLogEntry>.Filter.Eq(u => u.State, EventStateEnum.NotPublished);
var filterEvent = Builders<IntegrationEventLogEntry>.Filter.In(u => u.EventTypeShortName, _eventTypes.Select(e => e.Name));
var filterTransaction = Builders<IntegrationEventLogEntry>.Filter.Eq(u => u.TransactionId, transactionId.ToString());
var finalFilter = builder.And(filter, filterEvent, filterTransaction);
var sort = Builders<IntegrationEventLogEntry>.Sort.Descending(u => u.CreationTime);
return await IntegrationEventLogs
.Find(finalFilter)
.Sort(sort)
.ToListAsync();
}
public Task MarkEventAsInProgressAsync(Guid eventId, IClientSessionHandle transaction)
{
return UpdateEventStatus(eventId, EventStateEnum.InProgress, transaction);
}
public Task MarkEventAsPublishedAsync(Guid eventId, IClientSessionHandle transaction)
{
return UpdateEventStatus(eventId, EventStateEnum.Published, transaction);
}
public Task MarkEventAsFailedAsync(Guid eventId, IClientSessionHandle transaction)
{
return UpdateEventStatus(eventId, EventStateEnum.PublishedFailed, transaction);
}
public async Task<IClientSessionHandle> StartSession(CancellationToken cancellactionToken = default(CancellationToken))
{
var session = await _client.StartSessionAsync(cancellationToken: cancellactionToken);
Session = session;
return session;
}
public Task SaveEventAsync(IntegrationEvent @event, IClientSessionHandle transaction)
{
throw new NotImplementedException();
}
}
} | 43.48366 | 148 | 0.690065 | [
"MIT"
] | lefevbre-organization/eShopOnContainers | src/Services/Google/GoogleAccount.API/Infrastructure/GoogleAccountContext.cs | 6,655 | C# |
using DataModel;
using FluentValidation;
using Infrastructure.Core.Commands;
using Infrastructure.EventStores.Repository;
using MediatR;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
namespace MoviesService.Commands
{
public class DeleteMoviesByUserIdCommand
{
public class Command : ICommand
{
public Guid UserId { get; set; }
}
public class Validator : AbstractValidator<Command>
{
public Validator()
{
RuleFor(cmd => cmd.UserId).NotEmpty();
}
}
public class Handler : ICommandHandler<Command>
{
private readonly IRepository<MovieAggregate> _repository;
private readonly DatabaseContext _db;
public Handler(IRepository<MovieAggregate> repository, DatabaseContext db)
{
_repository = repository;
_db = db;
}
public async Task<Unit> Handle(Command command, CancellationToken cancellationToken)
{
var movieIds = await GetMovieIds(command.UserId);
var movies = await _repository.Find(movieIds);
foreach (var movie in movies)
{
movie.DeleteMovie(command.UserId);
}
await _repository.Delete(movies);
return Unit.Value;
}
private async Task<ICollection<Guid>> GetMovieIds(Guid userId)
{
var query = from movie in _db.Movies
where movie.UserId == userId
select movie.Id;
var result = await query.ToListAsync();
return result;
}
}
}
}
| 26.430556 | 96 | 0.56227 | [
"MIT"
] | GuilhermeStracini/NetCoreMicroservicesSample | Src/MoviesService/Commands/DeleteMoviesByUserIdCommand.cs | 1,905 | C# |
namespace iTin.Core.Models.Design.Styling
{
using System;
using iTin.Core.Helpers;
using Collections;
/// <summary>
/// Defines a styles collection.
/// </summary>
public partial class StylesCollection : IStyles
{
#region constructor/s
#region [public] StylesCollection(): Initializes a new instance of the class
/// <inheritdoc />
/// <summary>
/// Initializes a new instance of the <see cref="StylesCollection"/> class.
/// </summary>
public StylesCollection() : base(null)
{
}
#endregion
#region [public] StylesCollection(object): Initializes a new instance of the class
/// <inheritdoc />
/// <summary>
/// Initializes a new instance of the <see cref="StylesCollection"/> class.
/// </summary>
/// <param name="parent">The parent.</param>
public StylesCollection(object parent) : base(parent)
{
}
#endregion
#endregion
#region interfaces
#region ICloneable
#region explicit
#region (object) ICloneable.Clone(): Creates a new object that is a copy of the current instance
/// <inheritdoc />
/// <summary>
/// Creates a new object that is a copy of the current instance.
/// </summary>
/// <returns>
/// A new object that is a copy of this instance.
/// </returns>
object ICloneable.Clone() => Clone();
#endregion
#endregion
#endregion
#region IStyles
#region explicit
#region (IStyle) IStyles.GetBy(string): Returns specified style by name
/// <summary>
/// Returns specified style by name.
/// </summary>
/// <param name="value">Style name to get</param>
/// <returns>
/// A <see cref="IStyle"/> reference.
/// </returns>
IStyle IStyles.GetBy(string value) => GetBy(value);
#endregion
#endregion
#endregion
#endregion
#region protected override methods
#region [protected] {override} (BaseStyle) GetBy(string): Returns the element specified
/// <inheritdoc />
/// <summary>
/// Returns the element specified.
/// </summary>
/// <param name="value">The object to locate in the <see cref="BaseComplexModelCollection{TItem,TParent,TSearch}"/>.</param>
/// <returns>
/// Returns the specified element.
/// </returns>
public override BaseStyle GetBy(string value)
{
if (string.IsNullOrEmpty(value))
{
return BaseStyle.Default;
}
var style = Find(s => s.Name.Equals(value));
return style ?? BaseStyle.Default;
}
#endregion
#region [protected] {override} (void) SetOwner(BaseStyle): Sets this collection as the owner of the specified item
/// <inheritdoc />
/// <summary>
/// Sets this collection as the owner of the specified item.
/// </summary>
/// <param name="item">Target item to set owner.</param>
protected override void SetOwner(BaseStyle item)
{
SentinelHelper.ArgumentNull(item, nameof(item));
item.SetOwner(this);
}
#endregion
#endregion
#region public methods
#region [public] (StylesCollection) Clone(): Clones this instance
/// <summary>
/// Clones this instance.
/// </summary>
/// <returns>
/// A new object that is a copy of this instance.
/// </returns>
public StylesCollection Clone() => CopierHelper.DeepCopy(this);
#endregion
#endregion
}
}
| 27.905109 | 132 | 0.557416 | [
"MIT"
] | iAJTin/iXlsxWriter | src/lib/iTin.Core/iTin.Core.Models.Design/iTin.Core.Models.Design.Styling/StylesCollection.cs | 3,825 | C# |
using System.Collections;
using System.Collections.Generic;
using Unity.Entities;
using Unity.Transforms;
using UnityEngine;
public class ECSConversion : MonoBehaviour
{
private List<GameObject> CubeGOList;
public GameObject Cube;
EntityManager manager;
Entity AsteroidEntityPrefab;
Vector3 offset = new Vector3(0,0,0);
void Awake()
{
if(manager == null)
manager = World.Active.EntityManager;
AsteroidEntityPrefab = GameObjectConversionUtility.ConvertGameObjectHierarchy(Cube, World.Active);
}
void Update()
{
if (Input.GetKey("g"))
{
for (int i = 0; i < 5; i++)
SpawnTheAsteroids();
}
}
private void SpawnTheAsteroids()
{
Entity asteroid = manager.Instantiate(AsteroidEntityPrefab);
offset.z+=2;
manager.SetComponentData(asteroid, new Translation { Value = transform.position + offset });
manager.SetComponentData(asteroid, new Rotation { Value = Quaternion.identity });
}
}
| 25.047619 | 106 | 0.65019 | [
"MIT"
] | DavidJNichol/Unity-Fractals | Assets/Scripts/Demos/ECSConversion.cs | 1,054 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Localization;
using Microsoft.AspNetCore.Mvc.ViewFeatures;
using Microsoft.Extensions.Localization;
using Microsoft.Extensions.Logging;
using Moq;
using Newtonsoft.Json.Linq;
using OrchardCore.DisplayManagement;
using OrchardCore.DisplayManagement.Notify;
using OrchardCore.Email;
using OrchardCore.Settings;
using OrchardCore.Users;
using OrchardCore.Users.Controllers;
using OrchardCore.Users.Events;
using OrchardCore.Users.Models;
using OrchardCore.Users.Services;
using OrchardCore.Users.ViewModels;
using Xunit;
namespace OrchardCore.Tests.OrchardCore.Users
{
public class RegistrationControllerTests
{
[Fact]
public async Task UsersShouldNotBeAbleToRegisterIfNotAllowed()
{
var mockUserManager = MockUserManager<IUser>().Object;
var settings = new RegistrationSettings { UsersCanRegister = UserRegistrationType.NoRegistration };
var mockSiteService = Mock.Of<ISiteService>(ss =>
ss.GetSiteSettingsAsync() == Task.FromResult(
Mock.Of<ISite>(s => s.Properties == JObject.FromObject(new { RegistrationSettings = settings }))
)
);
var mockSmtpService = Mock.Of<ISmtpService>();
var controller = new RegistrationController(
mockUserManager,
Mock.Of<IAuthorizationService>(),
mockSiteService,
Mock.Of<INotifier>(),
Mock.Of<ILogger<RegistrationController>>(),
Mock.Of<IHtmlLocalizer<RegistrationController>>(),
Mock.Of<IStringLocalizer<RegistrationController>>());
var result = await controller.Register();
Assert.IsType<NotFoundResult>(result);
// Post
result = await controller.Register(new RegisterViewModel());
Assert.IsType<NotFoundResult>(result);
}
[Fact]
public async Task UsersShouldBeAbleToRegisterIfAllowed()
{
var mockUserManager = MockUserManager<IUser>().Object;
var settings = new RegistrationSettings { UsersCanRegister = UserRegistrationType.AllowRegistration };
var mockSiteService = Mock.Of<ISiteService>(ss =>
ss.GetSiteSettingsAsync() == Task.FromResult(
Mock.Of<ISite>(s => s.Properties == JObject.FromObject(new { RegistrationSettings = settings }))
)
);
var mockSmtpService = Mock.Of<ISmtpService>();
var controller = new RegistrationController(
mockUserManager,
Mock.Of<IAuthorizationService>(),
mockSiteService,
Mock.Of<INotifier>(),
Mock.Of<ILogger<RegistrationController>>(),
Mock.Of<IHtmlLocalizer<RegistrationController>>(),
Mock.Of<IStringLocalizer<RegistrationController>>());
var mockServiceProvider = new Mock<IServiceProvider>();
mockServiceProvider
.Setup(x => x.GetService(typeof(ISmtpService)))
.Returns(mockSmtpService);
mockServiceProvider
.Setup(x => x.GetService(typeof(UserManager<IUser>)))
.Returns(mockUserManager);
mockServiceProvider
.Setup(x => x.GetService(typeof(ISiteService)))
.Returns(mockSiteService);
mockServiceProvider
.Setup(x => x.GetService(typeof(IEnumerable<IRegistrationFormEvents>)))
.Returns(Enumerable.Empty<IRegistrationFormEvents>());
mockServiceProvider
.Setup(x => x.GetService(typeof(IUserService)))
.Returns(Mock.Of<IUserService>());
mockServiceProvider
.Setup(x => x.GetService(typeof(SignInManager<IUser>)))
.Returns(MockSignInManager(mockUserManager).Object);
mockServiceProvider
.Setup(x => x.GetService(typeof(ITempDataDictionaryFactory)))
.Returns(Mock.Of<ITempDataDictionaryFactory>());
var mockHttpContext = new Mock<HttpContext>();
mockHttpContext
.Setup(x => x.RequestServices)
.Returns(mockServiceProvider.Object);
controller.ControllerContext.HttpContext = mockHttpContext.Object;
var result = await controller.Register();
Assert.IsType<ViewResult>(result);
// Post
result = await controller.Register(new RegisterViewModel());
Assert.IsType<ViewResult>(result);
}
public static Mock<SignInManager<TUser>> MockSignInManager<TUser>(UserManager<TUser> userManager = null) where TUser : class
{
var context = new Mock<HttpContext>();
var manager = userManager ?? MockUserManager<TUser>().Object;
return new Mock<SignInManager<TUser>>(
manager,
new HttpContextAccessor { HttpContext = context.Object },
Mock.Of<IUserClaimsPrincipalFactory<TUser>>(),
null,
null,
null,
null)
{ CallBase = true };
}
public static Mock<UserManager<TUser>> MockUserManager<TUser>() where TUser : class
{
IList<IUserValidator<TUser>> UserValidators = new List<IUserValidator<TUser>>();
IList<IPasswordValidator<TUser>> PasswordValidators = new List<IPasswordValidator<TUser>>();
var store = new Mock<IUserStore<TUser>>();
UserValidators.Add(new UserValidator<TUser>());
PasswordValidators.Add(new PasswordValidator<TUser>());
var mgr = new Mock<UserManager<TUser>>(store.Object,
null,
null,
UserValidators,
PasswordValidators,
null,
null,
null,
null);
return mgr;
}
}
}
| 40.625806 | 132 | 0.611085 | [
"BSD-3-Clause"
] | BenPool/OrchardCore | test/OrchardCore.Tests/OrchardCore.Users/RegistrationControllerTests.cs | 6,297 | C# |
using System.Collections.Generic;
using System.Linq;
namespace Microsoft.Build.Logging.StructuredLogger
{
public class ParentedNode : BaseNode
{
private TreeNode parent;
public TreeNode Parent
{
get => parent;
set
{
#if DEBUG
if (parent != null && value != null)
{
throw new System.InvalidOperationException("A node is being reparented");
}
#endif
parent = value;
}
}
public IEnumerable<ParentedNode> GetParentChainExcludingThis()
{
var chain = new List<ParentedNode>();
ParentedNode current = this;
while (current.Parent != null)
{
current = current.Parent;
chain.Add(current);
}
chain.Reverse();
return chain;
}
public IEnumerable<ParentedNode> GetParentChainIncludingThis()
{
var chain = new List<ParentedNode>();
ParentedNode current = this;
while (current.Parent != null)
{
chain.Add(current);
current = current.Parent;
}
chain.Reverse();
return chain;
}
public T GetNearestParent<T>() where T : ParentedNode
{
ParentedNode current = this;
while (current.Parent != null)
{
current = current.Parent;
if (current is T)
{
return (T)current;
}
}
return null;
}
public IEnumerable<ParentedNode> EnumerateSiblingsCycle()
{
var parent = this.Parent;
if (parent == null)
{
yield return this;
yield break;
}
var index = parent.FindChildIndex(this);
for (int i = index; i < parent.Children.Count; i++)
{
if (parent.Children[i] is ParentedNode child)
{
yield return child;
}
}
for (int i = 0; i < index; i++)
{
if (parent.Children[i] is ParentedNode child)
{
yield return child;
}
}
}
}
}
| 26.4375 | 94 | 0.427502 | [
"MIT"
] | SeppPenner/MSBuildStructuredLog | src/StructuredLogger/ObjectModel/ParentedNode.cs | 2,540 | C# |
//
// Copyright (c) 2017 The nanoFramework project contributors
// Portions Copyright (c) Microsoft Corporation. All rights reserved.
// See LICENSE file in the project root for full license information.
//
using System;
namespace nanoFramework.Tools.Debugger.WireProtocol
{
public class VersionStruct
{
public ushort major;
public ushort minor;
public ushort build;
public ushort revision;
public Version Version
{
get { return new Version(major, minor, build, revision); }
}
}
}
| 23.583333 | 70 | 0.660777 | [
"Apache-2.0"
] | AdrianSoundy/nf-debugger | source/Debug Library/WireProtocol/VersionStruct.cs | 568 | C# |
namespace ExtractorSharp.Core.Handle {
/// <summary>
/// img版本
/// </summary>
public enum ImgVersion {
Other = 0x00,
Ver1 = 0x01,
Ver2 = 0x02,
Ver4 = 0x04,
Ver5 = 0x05,
Ver6 = 0x06,
Ver7 = 0x07,
Ver8 = 0x08,
Ver9 = 0x09
}
} | 20 | 39 | 0.453125 | [
"MIT"
] | Kritsu/ExtractorSharp | ExtractorSharp.Core/Handle/Img_Version.cs | 326 | C# |
using Abp.Application.Services;
using Abp.Application.Services.Dto;
using BlazorProject.Backend.Categories.Dto;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace BlazorProject.Backend.Categories
{
public interface ICategoriesService:IApplicationService
{
Task<ListResultDto<CategoryListDto>> GetCategories();
}
}
| 24.5 | 61 | 0.793367 | [
"MIT"
] | 274188A/BlazorProjectASPBoilerplateBackend | aspnet-core/src/BlazorProject.Backend.Application/Categories/ICategoriesService.cs | 394 | C# |
// <copyright file="ItemPageMap.cs" company="Automate The Planet Ltd.">
// Copyright 2021 Automate The Planet Ltd.
// 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
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
// <author>Anton Angelov</author>
// <site>http://automatetheplanet.com/</site>
using OpenQA.Selenium;
namespace FacadeDesignPattern.Pages.ItemPage
{
public class ItemPageMap : Core.BasePageElementMap
{
public IWebElement BuyNowButton
{
get
{
return Browser.FindElement(By.Id("binBtn_btn"));
}
}
public IWebElement Price
{
get
{
return Browser.FindElement(By.Id("prcIsum"));
}
}
}
} | 33.054054 | 85 | 0.654947 | [
"Apache-2.0"
] | AutomateThePlanet/AutomateThePlanet-Learning-Series | dotnet/Design-Architecture-Series/FacadeDesignPattern/Pages/ItemPage/ItemPageMap.cs | 1,225 | C# |
// CivOne
//
// To the extent possible under law, the person who associated CC0 with
// CivOne has waived all copyright and related or neighboring rights
// to CivOne.
//
// You should have received a copy of the CC0 legalcode along with this
// work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using CivOne.Advances;
using CivOne.Buildings;
using CivOne.Civilizations;
using CivOne.Concepts;
using CivOne.Governments;
using CivOne.Graphics.Sprites;
using CivOne.Leaders;
using CivOne.Tiles;
using CivOne.Units;
using CivOne.Wonders;
namespace CivOne
{
internal static class Reflect
{
private static void Log(string text, params object[] parameters) => RuntimeHandler.Runtime.Log(text, parameters);
private static Plugin[] _plugins;
private static void LoadPlugins()
{
if (_plugins != null) return;
_plugins = Directory.GetFiles(Settings.Instance.PluginsDirectory, "*.dll").Select(x => Plugin.Load(x)).Where(x => x != null).ToArray();
string[] disabledPlugins = Settings.Instance.DisabledPlugins.ToArray();
if (_plugins.Any(x => !disabledPlugins.Contains(x.Filename)))
{
Settings.Instance.DisabledPlugins = _plugins.Where(x => !x.Enabled).Select(x => x.Filename).ToArray();
}
}
internal static void LoadPlugin(string filename)
{
if (!Plugin.Validate(filename)) return;
List<Plugin> plugins = new List<Plugin>(_plugins ?? new Plugin[0]);
Plugin plugin = Plugin.Load(filename);
plugin.Enabled = true;
plugins.RemoveAll(x => x.Filename == Path.GetFileName(filename));
plugins.Add(plugin);
_plugins = plugins.ToArray();
ApplyPlugins();
}
private static IEnumerable<Assembly> GetAssemblies
{
get
{
yield return typeof(Reflect).GetTypeInfo().Assembly;
}
}
private static IEnumerable<T> GetTypes<T>()
{
foreach (Assembly asm in GetAssemblies)
foreach (Type type in asm.GetTypes().Where(t => typeof(T).GetTypeInfo().IsAssignableFrom(t.GetTypeInfo()) && t.GetTypeInfo().IsClass && !t.GetTypeInfo().IsAbstract))
{
yield return (T)Activator.CreateInstance(type);
}
foreach (Assembly asm in GetAssemblies)
foreach (Type type in asm.GetTypes().Where(t => (t is T) && t.GetTypeInfo().IsClass && !t.GetTypeInfo().IsAbstract))
{
yield return (T)Activator.CreateInstance(type);
}
}
internal static IEnumerable<IAdvance> GetAdvances() => GetTypes<IAdvance>().OrderBy(x => x.Id);
internal static IEnumerable<ICivilization> GetCivilizations() => GetTypes<ICivilization>().OrderBy(x => (int)x.Id);
internal static IEnumerable<IGovernment> GetGovernments() => GetTypes<IGovernment>().OrderBy(x => x.Id);
internal static IEnumerable<IUnit> GetUnits() => GetTypes<IUnit>().OrderBy(x => (int)x.Type);
internal static IEnumerable<IBuilding> GetBuildings() => GetTypes<IBuilding>().OrderBy(x => x.Id);
internal static IEnumerable<IWonder> GetWonders() => GetTypes<IWonder>().OrderBy(x => x.Id);
internal static IEnumerable<IProduction> GetProduction()
{
foreach (IProduction production in GetUnits())
yield return production;
foreach (IProduction production in GetBuildings())
yield return production;
foreach (IProduction production in GetWonders())
yield return production;
}
internal static IEnumerable<IConcept> GetConcepts() => GetTypes<IConcept>();
internal static IEnumerable<ICivilopedia> GetCivilopediaAll()
{
List<string> articles = new List<string>();
foreach (ICivilopedia article in GetTypes<ICivilopedia>().OrderBy(a => (a is IConcept) ? 1 : 0))
{
if (articles.Contains(article.Name)) continue;
articles.Add(article.Name);
yield return article;
}
}
internal static IEnumerable<ICivilopedia> GetCivilopediaAdvances() => GetTypes<IAdvance>();
internal static IEnumerable<ICivilopedia> GetCivilopediaCityImprovements()
{
foreach (ICivilopedia civilopedia in GetTypes<IBuilding>())
yield return civilopedia;
foreach (ICivilopedia civilopedia in GetTypes<IWonder>())
yield return civilopedia;
}
internal static IEnumerable<ICivilopedia> GetCivilopediaUnits() => GetTypes<IUnit>();
internal static IEnumerable<ICivilopedia> GetCivilopediaTerrainTypes() => GetTypes<ITile>();
internal static void ApplyPlugins()
{
BaseCivilization.LoadModifications();
BaseLeader.LoadModifications();
BaseUnit.LoadModifications();
}
internal static IEnumerable<Plugin> Plugins()
{
if (_plugins == null)
{
LoadPlugins();
ApplyPlugins();
}
return _plugins;
}
private static IEnumerable<Type> PluginModifications
{
get
{
if (_plugins == null) yield break;
foreach (Assembly assembly in _plugins.Where(x => x.Enabled).Select(x => x.Assembly))
foreach (Type type in assembly.GetTypes().Where(x => x.IsClass && !x.IsAbstract && x.GetInterfaces().Contains(typeof(IModification))))
{
yield return type;
}
}
}
private static object[] ParseParameters(params object[] parameters)
{
List<object> output = new List<object>();
foreach (object parameter in parameters)
{
switch (parameter)
{
case string stringParameter:
output.Add(stringParameter);
break;
case int intParameter:
output.Add(intParameter);
break;
default:
output.Add(parameter);
break;
}
}
return output.ToArray();
}
internal static IEnumerable<T> GetModifications<T>()
{
foreach (Type type in PluginModifications.Where(x => x.IsSubclassOf(typeof(T))))
{
yield return (T)Activator.CreateInstance(type);
}
}
internal static void PreloadCivilopedia()
{
Log("Civilopedia: Preloading articles...");
foreach (ICivilopedia article in GetCivilopediaAll());
Log("Civilopedia: Preloading done!");
}
}
} | 29.57 | 168 | 0.703416 | [
"CC0-1.0"
] | Andersw88/CivOne | src/Reflect.cs | 5,914 | C# |
using System.Drawing.Imaging;
namespace Infrastructure
{
public static class ImageFormatExtensions
{
public static ImageFormat GetImageFormat(this string extension)
{
switch (extension.ToLower())
{
case ".png":
return ImageFormat.Png;
case ".gif":
return ImageFormat.Gif;
case ".ico":
return ImageFormat.Icon;
case ".bmp":
return ImageFormat.Bmp;
}
return ImageFormat.Jpeg;
}
public static string GetExtension(this ImageFormat format)
{
if (format == ImageFormat.Png)
{
return ".png";
}
if (format == ImageFormat.Bmp)
{
return ".bmp";
}
if (format == ImageFormat.Gif)
{
return ".gif";
}
return ".jpeg";
}
}
}
| 24.595238 | 71 | 0.433688 | [
"MIT"
] | yycx0328/opcomunity-admin | Infrastructure/Imaging/ImageFormatExtensions.cs | 1,035 | C# |
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.IO;
using System.Linq;
using System.Text;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.Text;
namespace Shiny.Tests.Generators
{
public class AssemblyGenerator
{
static readonly MetadataReference CorlibReference = MetadataReference.CreateFromFile(typeof(object).Assembly.Location);
//static readonly MetadataReference SystemRuntimeReference = MetadataReference.CreateFromFile(typeof(GCSettings).Assembly.Location);
//static readonly MetadataReference NetStdReference = MetadataReference.CreateFromFile(typeof(Attribute).Assembly.Location);
static readonly MetadataReference SystemCoreReference = MetadataReference.CreateFromFile(typeof(Enumerable).Assembly.Location);
static readonly MetadataReference CSharpSymbolsReference = MetadataReference.CreateFromFile(typeof(CSharpCompilation).Assembly.Location);
static readonly MetadataReference CodeAnalysisReference = MetadataReference.CreateFromFile(typeof(Compilation).Assembly.Location);
readonly List<MetadataReference> references = new List<MetadataReference>();
readonly List<SyntaxTree> sources = new List<SyntaxTree>();
public void AddSource(string sourceText)
{
var source = SourceText.From(sourceText, Encoding.UTF8);
var tree = CSharpSyntaxTree.ParseText(source);
this.sources.Add(tree);
}
public void AddReferences(params string[] assemblies)
{
foreach (var assembly in assemblies)
this.AddReference(assembly);
}
public void AddReference(string assemblyName)
{
var path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, assemblyName);
var ass = AppDomain
.CurrentDomain
.GetAssemblies()
.FirstOrDefault(x => x.GetName().Name.Equals(assemblyName, StringComparison.InvariantCultureIgnoreCase));
if (ass == null)
throw new ArgumentException($"Assembly '{assemblyName}' not found at '{path}'");
var reference = MetadataReference.CreateFromFile(ass.Location);
this.references.Add(reference);
}
public CSharpCompilation Create(string assemblyName) => CSharpCompilation
.Create(assemblyName)
.WithReferences(this.references)
.WithOptions(new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary))
.AddSyntaxTrees(this.sources);
public Compilation DoGenerate(string dllName, ISourceGenerator sourceGenerator, bool validateCompilations = false)
{
var dd = typeof(Enumerable).Assembly.Location;
var coreDir = Directory.GetParent(dd);
var netstandard = MetadataReference.CreateFromFile(coreDir.FullName + Path.DirectorySeparatorChar + "netstandard.dll");
var runtime = MetadataReference.CreateFromFile(coreDir.FullName + Path.DirectorySeparatorChar + "System.Runtime.dll");
var objModel = MetadataReference.CreateFromFile(coreDir.FullName + Path.DirectorySeparatorChar + "System.ObjectModel.dll");
this.references.AddRange(new []
{
netstandard,
runtime,
objModel,
CorlibReference,
//SystemRuntimeReference,
//NetStdReference,
SystemCoreReference,
CSharpSymbolsReference,
CodeAnalysisReference
});
this.AddReference("netstandard");
var driver = CSharpGeneratorDriver.Create(sourceGenerator);
var inputCompilation = this.Create(dllName);
driver.RunGeneratorsAndUpdateCompilation(
inputCompilation,
out var outputCompilation,
out var diags
);
this.ThrowAnyErrors(diags);
// HACK: this is a temporary hack to deal with testing Xamarin iOS and Android
if (validateCompilations)
{
this.ThrowAnyErrors(inputCompilation.GetDiagnostics());
this.ThrowAnyErrors(outputCompilation.GetDiagnostics());
}
return outputCompilation;
}
void ThrowAnyErrors(ImmutableArray<Diagnostic> diags)
{
foreach (var diag in diags)
{
if (diag.Severity == DiagnosticSeverity.Error)
{
var msg = diag.GetMessage();
if (diag.Location != null)
msg += " - " + diag.Location.ToString();
throw new ArgumentException(msg);
}
}
}
}
}
| 39.707317 | 145 | 0.640459 | [
"MIT"
] | Codelisk/shiny | tests/Shiny.Tests/Generators/AssemblyGenerator.cs | 4,886 | C# |
using System;
using Xunit;
using TwaddleGram.Models;
using TwaddleGram.Data;
using TwaddleGram.Models.Services;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.InMemory;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
namespace UnitTests
{
public class UnitTest1
{
/// <summary>
/// verifies that GetAllUsers returns a list of the correct length
/// </summary>
[Fact]
public async void GetAllUsers_GetsAllUsers()
{
DbContextOptions<TwaddleDbContext> options = new DbContextOptionsBuilder<TwaddleDbContext>().UseInMemoryDatabase("GetAllUsers").Options;
using (TwaddleDbContext _context = new TwaddleDbContext(options))
{
//arrange
User one = new User();
User two = new User();
User three = new User();
User four = new User();
User five = new User();
await _context.Users.AddAsync(one);
await _context.Users.AddAsync(two);
await _context.Users.AddAsync(three);
await _context.Users.AddAsync(four);
await _context.Users.AddAsync(five);
await _context.SaveChangesAsync();
//act
UserManager service = new UserManager(_context);
var query = await service.GetAllUsers();
int count = query.ToList<User>().Count;
//assert
Assert.Equal(5, count);
}
}
/// <summary>
/// verifies that GetAllUsers returns a list with expected User objects
/// </summary>
[Fact]
public async void GetAllUsers_GetsExpectedUserObjects()
{
DbContextOptions<TwaddleDbContext> options = new DbContextOptionsBuilder<TwaddleDbContext>().UseInMemoryDatabase("GetUserObjects").Options;
using (TwaddleDbContext _context = new TwaddleDbContext(options))
{
//arrange
User one = new User();
User two = new User();
User three = new User();
User four = new User();
User five = new User();
one.Username = "one";
two.Username = "two";
three.Username = "three";
four.Username = "four";
five.Username = "five";
await _context.Users.AddAsync(one);
await _context.Users.AddAsync(two);
await _context.Users.AddAsync(three);
await _context.Users.AddAsync(four);
await _context.Users.AddAsync(five);
await _context.SaveChangesAsync();
//act
UserManager service = new UserManager(_context);
var query = await service.GetAllUsers();
List<User> queryList = query.ToList<User>();
//assert
Assert.Equal("five", queryList[4].Username);
}
}
/// <summary>
/// verifies that GetAllPosts returns a list of the correct length
/// </summary>
[Fact]
public async void GetAllPosts_GetsAllPosts()
{
DbContextOptions<TwaddleDbContext> options = new DbContextOptionsBuilder<TwaddleDbContext>().UseInMemoryDatabase("GetAllPosts").Options;
using (TwaddleDbContext _context = new TwaddleDbContext(options))
{
//arrange
Post one = new Post();
Post two = new Post();
Post three = new Post();
Post four = new Post();
Post five = new Post();
await _context.Posts.AddAsync(one);
await _context.Posts.AddAsync(two);
await _context.Posts.AddAsync(three);
await _context.Posts.AddAsync(four);
await _context.Posts.AddAsync(five);
await _context.SaveChangesAsync();
//act
PostManager service = new PostManager(_context);
var query = await service.GetAllPosts();
int count = query.ToList<Post>().Count;
//assert
Assert.Equal(5, count);
}
}
/// <summary>
/// verifies that GetAllPosts returns a list with expected User objects
/// </summary>
[Fact]
public async void GetAllPosts_GetsExpectedPostObjects()
{
DbContextOptions<TwaddleDbContext> options = new DbContextOptionsBuilder<TwaddleDbContext>().UseInMemoryDatabase("GetPostObjects").Options;
using (TwaddleDbContext _context = new TwaddleDbContext(options))
{
//arrange
Post one = new Post();
Post two = new Post();
Post three = new Post();
Post four = new Post();
Post five = new Post();
one.Caption = "one";
two.Caption = "two";
three.Caption = "three";
four.Caption = "four";
five.Caption = "five";
await _context.Posts.AddAsync(one);
await _context.Posts.AddAsync(two);
await _context.Posts.AddAsync(three);
await _context.Posts.AddAsync(four);
await _context.Posts.AddAsync(five);
await _context.SaveChangesAsync();
//act
PostManager service = new PostManager(_context);
var query = await service.GetAllPosts();
List<Post> queryList = query.ToList<Post>();
//assert
Assert.Equal("five", queryList[4].Caption);
}
}
/// <summary>
/// verifies that GetOnePost returns the correct post
/// </summary>
[Fact]
public async void GetOnePost_ReturnsCorrectPost()
{
DbContextOptions<TwaddleDbContext> options = new DbContextOptionsBuilder<TwaddleDbContext>().UseInMemoryDatabase("GetOnePost").Options;
using (TwaddleDbContext _context = new TwaddleDbContext(options))
{
//arrange
Post one = new Post();
Post two = new Post();
Post three = new Post();
Post four = new Post();
Post five = new Post();
one.Caption = "one";
two.Caption = "two";
three.Caption = "three";
four.Caption = "four";
five.Caption = "five";
await _context.Posts.AddAsync(one);
await _context.Posts.AddAsync(two);
await _context.Posts.AddAsync(three);
await _context.Posts.AddAsync(four);
await _context.Posts.AddAsync(five);
await _context.SaveChangesAsync();
//act
PostManager service = new PostManager(_context);
var query = await _context.Posts.FirstOrDefaultAsync(m => m.Caption == "five");
//assert
Assert.Equal("five", query.Caption);
}
}
/// <summary>
/// verifies that GetOnePost returns 'null' if not found
/// </summary>
[Fact]
public async void GetOnePost_ReturnsNull()
{
DbContextOptions<TwaddleDbContext> options = new DbContextOptionsBuilder<TwaddleDbContext>().UseInMemoryDatabase("GetNullPost").Options;
using (TwaddleDbContext _context = new TwaddleDbContext(options))
{
//arrange
Post one = new Post();
Post two = new Post();
Post three = new Post();
Post four = new Post();
Post five = new Post();
one.Caption = "one";
two.Caption = "two";
three.Caption = "three";
four.Caption = "four";
five.Caption = "five";
await _context.Posts.AddAsync(one);
await _context.Posts.AddAsync(two);
await _context.Posts.AddAsync(three);
await _context.Posts.AddAsync(four);
await _context.Posts.AddAsync(five);
await _context.SaveChangesAsync();
//act
PostManager service = new PostManager(_context);
//assert
Assert.Null(await service.GetOnePost(6));
}
}
/// <summary>
/// verifies that EditPost correctly edits existing post
/// </summary>
[Fact]
public async void EditPost_UpdatesExistingPost()
{
DbContextOptions<TwaddleDbContext> options = new DbContextOptionsBuilder<TwaddleDbContext>().UseInMemoryDatabase("EditPost").Options;
using (TwaddleDbContext _context = new TwaddleDbContext(options))
{
//arrange
Post one = new Post();
one.Caption = "test";
PostManager service = new PostManager(_context);
await service.MakePost(one);
//act
one.Caption = "updated";
await service.EditPost(one);
//assert
Assert.Equal("updated", (await service.GetOnePost(1)).Caption);
}
}
/// <summary>
/// verifies that DeletePost correctly deletes existing post
/// </summary>
[Fact]
public async void DeletePost_DeletesExistingPost()
{
DbContextOptions<TwaddleDbContext> options = new DbContextOptionsBuilder<TwaddleDbContext>().UseInMemoryDatabase("DeletePost").Options;
using (TwaddleDbContext _context = new TwaddleDbContext(options))
{
//arrange
Post one = new Post();
one.Caption = "test";
PostManager service = new PostManager(_context);
await service.MakePost(one);
//act
await service.DeletePost(one.ID);
//assert
Assert.Null((await service.GetOnePost(1)));
}
}
/// <summary>
/// verifies that MakePost correctly adds new post
/// </summary>
[Fact]
public async void MakePost_AddsPost()
{
DbContextOptions<TwaddleDbContext> options = new DbContextOptionsBuilder<TwaddleDbContext>().UseInMemoryDatabase("MakePost").Options;
using (TwaddleDbContext _context = new TwaddleDbContext(options))
{
//arrange
Post one = new Post();
one.Caption = "test";
//act
PostManager service = new PostManager(_context);
await service.MakePost(one);
var query = await _context.Posts.FirstOrDefaultAsync(m => m.Caption == "test");
//assert
Assert.Equal("test", query.Caption);
}
}
}
}
| 34.680982 | 151 | 0.528127 | [
"MIT"
] | GwennyB/twaddlegram | UnitTests/UnitTest1.cs | 11,306 | C# |
// Copyright © 2017 - 2018 Chocolatey Software, Inc
// Copyright © 2011 - 2017 RealDimensions Software, LLC
//
// 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
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
namespace chocolatey.infrastructure.app.nuget
{
using System;
using System.Collections.Generic;
using System.IO;
using NuGet;
// ReSharper disable InconsistentNaming
public static class NuGetFileSystemExtensions
{
public static void AddFiles(this IFileSystem fileSystem, IEnumerable<IPackageFile> files, string rootDir, bool preserveFilePath)
{
foreach (IPackageFile file in files)
{
string path = Path.Combine(rootDir, preserveFilePath ? file.Path : Path.GetFileName(file.Path));
fileSystem.AddFileWithCheck(path, file.GetStream);
}
}
internal static void AddFileWithCheck(this IFileSystem fileSystem, string path, Func<Stream> streamFactory)
{
using (Stream stream = streamFactory())
{
fileSystem.AddFile(path, stream);
}
}
internal static void AddFileWithCheck(this IFileSystem fileSystem, string path, Action<Stream> write)
{
fileSystem.AddFile(path, write);
}
}
// ReSharper restore InconsistentNaming
}
| 35.433962 | 137 | 0.65442 | [
"Apache-2.0"
] | 2733284198/choco | src/chocolatey/infrastructure.app/nuget/NuGetFileSystemExtensions.cs | 1,882 | C# |
using EasyETL.Attributes;
using Microsoft.VisualBasic.FileIO;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
using System.Xml.Xsl;
namespace EasyETL.Xml.Parsers
{
[DisplayName("Fixed Width")]
[EasyField("Widths", "The widths of each column. Input multiple widths in separate lines. If left empty, implies AutoDetect.")]
[EasyField("HasHeader", "The first row contains the column names.", "True", "True|False", "True;False")]
[EasyField("ColumnNames", "Enter the columns names in separate lines", "")]
[EasyField("Comments", "Lines starting with this prefix will be ignored for import","")]
[EasyField("TableName", "Name of the table", "row")]
[EasyField("IgnoreErrors","Set to true to ignore errored data.","False","True|False","True;False")]
public class FixedWidthEasyParser : SingleLineEasyParser
{
public List<int> ColumnWidths = new List<int>();
public FixedWidthEasyParser() : base()
{
FirstRowHasFieldNames = true;
ColumnWidths.Add(-1);
}
public FixedWidthEasyParser(bool hasHeaderRow = true, params int[] columnWidths)
{
FirstRowHasFieldNames = hasHeaderRow;
if (columnWidths.Length == 0)
ColumnWidths.Add(-1);
else
ColumnWidths.AddRange(columnWidths);
}
public override XmlDocument Load(TextReader txtReader, XmlDocument xDoc = null)
{
txtFieldParser = new TextFieldParser(txtReader) { TextFieldType = FieldType.FixedWidth };
txtFieldParser.SetFieldWidths(ColumnWidths.ToArray());
return GetXmlDocument(null, xDoc);
}
public override bool IsFieldSettingsComplete()
{
return (ColumnWidths.Count > 0);
}
public override Dictionary<string, string> GetSettingsAsDictionary()
{
Dictionary<string, string> resultDict = base.GetSettingsAsDictionary();
resultDict.Add("widths", String.Join(Environment.NewLine, ColumnWidths.ToArray()));
resultDict["parsertype"] = "Fixed Width";
return resultDict;
}
public override void LoadSetting(string fieldName, string fieldValue)
{
base.LoadSetting(fieldName, fieldValue);
if (String.IsNullOrWhiteSpace(fieldValue)) return;
switch (fieldName.ToLower())
{
case "widths":
ColumnWidths.Clear();
foreach (string columnWidth in fieldValue.Split(new [] { " ", Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries))
{
ColumnWidths.Add(Int16.Parse(columnWidth));
}
break;
}
}
}
}
| 38.74359 | 146 | 0.604567 | [
"MIT"
] | erisonliang/EasyETL.Net | EasyETL.Xml/Parsers/FixedWidthEasyParser.cs | 3,024 | C# |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace ChatUIXForms.Wpf.Properties
{
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources
{
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources()
{
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager
{
get
{
if ((resourceMan == null))
{
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ChatUIXForms.Wpf.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture
{
get
{
return resourceCulture;
}
set
{
resourceCulture = value;
}
}
}
}
| 38.736111 | 182 | 0.603801 | [
"MIT"
] | elv1s42/ChatUIXForms | ChatUIXForms.Wpf/Properties/Resources.Designer.cs | 2,791 | C# |
using Microsoft.AspNetCore.SignalR;
using SignalrDemo.Server.Interfaces;
using System;
using System.Diagnostics;
using System.Threading;
namespace Angular.NETCoreWith.SignalR_Assignment.Hubs
{
public class SignalrHub : Hub<ISignalrHub>
{
public void Hello()
{
Clients.Caller.DisplayMessage("Hello from the SignalrDemoHub!");
}
public void SimulateDataProcessing()
{
var stopwatch = new Stopwatch();
stopwatch.Start();
int progressPercentage = 0;
var random = new Random();
// iterate through a loop 10 times, waiting a random number of milliseconds before updating the progress bar
for (int i = 0; i < 10; i++)
{
int waitTimeMilliseconds = random.Next(100, 2500);
Thread.Sleep(waitTimeMilliseconds);
// increment the progress bar by 10%
Clients.Caller.UpdateProgressBar(progressPercentage += 10);
}
stopwatch.Stop();
Clients.Caller.DisplayProgressMessage($"Data processing complete, elapsed time: {stopwatch.Elapsed.TotalSeconds:0.0} seconds.");
}
}
}
| 29.682927 | 140 | 0.611339 | [
"MIT"
] | dipak77/Angular.NETCoreWith.SignalR_Assignment1 | ngWithJwt/Hubs/SignalrHubcs.cs | 1,219 | C# |
using System;
#if WISEJ
using Wisej.Web;
#else
using System.Windows.Forms;
#endif
using MvvmFx.CaliburnMicro;
namespace AcyncUpdate.UI
{
public interface IAsyncUpdateView : IHaveDataContext, IHaveBusyIndicator
{
}
public partial class AsyncUpdateView : Form, IAsyncUpdateView
{
private IAsyncUpdateViewModel _viewModel;
public AsyncUpdateView()
{
InitializeComponent();
ActiveControl = customerName;
}
public new void Close()
{
Application.Exit();
}
public BusyIndicator Indicator
{
get { return busyIndicator; }
}
private void Bind()
{
customerName.DataBindings.Add(new Binding("ReadOnly", DataContext, "IsCustomerNameReadOnly", true,
DataSourceUpdateMode.OnPropertyChanged));
}
#region IHaveDataContext implementation
public event EventHandler<DataContextChangedEventArgs> DataContextChanged = delegate { };
public object DataContext
{
get { return _viewModel; }
set
{
if (value != _viewModel)
{
_viewModel = value as IAsyncUpdateViewModel;
Bind();
DataContextChanged(this, new DataContextChangedEventArgs());
}
}
}
#endregion
}
} | 23.786885 | 110 | 0.567884 | [
"MIT"
] | MvvmFx/MvvmFx | Samples/CaliburnMicro/AcyncUpdate.WisejWeb/AsyncUpdateView.cs | 1,453 | C# |
using System.Collections.Generic;
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
#if UITEST
using Xamarin.UITest;
using NUnit.Framework;
using Xamarin.Forms.Core.UITests;
#endif
namespace Xamarin.Forms.Controls.Issues
{
#if UITEST
[Category(UITestCategories.ScrollView)]
[Category(UITestCategories.ListView)]
#endif
[Preserve(AllMembers = true)]
[Issue(IssueTracker.Github, 1931,
"Xamarin Forms on Android: ScrollView on ListView header crashes app when closing page",
PlatformAffected.Android)]
public class Issue1931 : TestNavigationPage
{
const string Go = "Go";
const string Back = "GoBack";
const string Success = "Success";
Label _result;
Label _instructions2;
ContentPage RootPage()
{
var page = new ContentPage();
page.Title = "GH1931 Root";
var button = new Button { Text = Go , AutomationId = Go };
button.Clicked += (sender, args) => PushAsync(ListViewPage());
var instructions = new Label { Text = $"Tap the {Go} button" };
_result = new Label { Text = Success, IsVisible = false };
_instructions2 = new Label { Text = "If you can see this, the test has passed", IsVisible = false };
var layout = new StackLayout();
layout.Children.Add(instructions);
layout.Children.Add(button);
layout.Children.Add(_result);
layout.Children.Add(_instructions2);
page.Content = layout;
return page;
}
ContentPage ListViewPage()
{
var page = new ContentPage();
var layout = new StackLayout();
var listView = new ListView();
var scrollView = new ScrollView { Content = new BoxView { Color = Color.Green } };
listView.Header = scrollView;
listView.ItemsSource = new List<string> { "One", "Two", "Three" };
page.Title = "GH1931 Test";
var instructions = new Label { Text = $"Tap the {Back} button" };
var button = new Button { Text = Back, AutomationId = Back };
button.Clicked += (sender, args) => PopAsync();
layout.Children.Add(instructions);
layout.Children.Add(button);
layout.Children.Add(listView);
page.Content = layout;
page.Appearing += (sender, args) =>
{
_instructions2.IsVisible = true;
_result.IsVisible = true;
};
return page;
}
protected override void Init()
{
PushAsync(RootPage());
}
#if UITEST
[Test]
public void ScrollViewInHeaderDisposesProperly()
{
RunningApp.WaitForElement(Go);
RunningApp.Tap(Go);
RunningApp.WaitForElement(Back);
RunningApp.Tap(Back);
RunningApp.WaitForElement(Success);
}
#endif
}
} | 23.293578 | 103 | 0.688066 | [
"MIT"
] | AuriR/Xamarin.Forms | Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1931.cs | 2,541 | C# |
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
namespace Pulumi.GoogleNative.ServiceManagement.V1.Outputs
{
/// <summary>
/// Configuration of a specific monitoring destination (the producer project or the consumer project).
/// </summary>
[OutputType]
public sealed class MonitoringDestinationResponse
{
/// <summary>
/// Types of the metrics to report to this monitoring destination. Each type must be defined in Service.metrics section.
/// </summary>
public readonly ImmutableArray<string> Metrics;
/// <summary>
/// The monitored resource type. The type must be defined in Service.monitored_resources section.
/// </summary>
public readonly string MonitoredResource;
[OutputConstructor]
private MonitoringDestinationResponse(
ImmutableArray<string> metrics,
string monitoredResource)
{
Metrics = metrics;
MonitoredResource = monitoredResource;
}
}
}
| 32.871795 | 128 | 0.673167 | [
"Apache-2.0"
] | AaronFriel/pulumi-google-native | sdk/dotnet/ServiceManagement/V1/Outputs/MonitoringDestinationResponse.cs | 1,282 | C# |
/*<FILE_LICENSE>
* NFX (.NET Framework Extension) Unistack Library
* Copyright 2003-2018 Agnicore Inc. portions ITAdapter Corp. Inc.
*
* 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
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
</FILE_LICENSE>*/
/* NFX by ITAdapter
* Originated: 2006.01
* Revision: NFX 1.0 2013.12.10
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Diagnostics;
using NFX;
using NFX.Environment;
namespace NFX.IO.ErrorHandling
{
public class ReedSolomonEncoder
{
#region .ctor
public ReedSolomonEncoder(GaloisField field)
{
m_Field = field;
m_PolySet.Add( new GaloisPolynomial(field, new int[] { 1 }) );
}
#endregion
#region Pvt/Prot/Int Fields
private GaloisField m_Field;
private List<GaloisPolynomial> m_PolySet = new List<GaloisPolynomial>();
#endregion
#region Public
public void Encode(int[] src, int errorCorrectionLength)
{
if (errorCorrectionLength <= 0)
throw new NFXException(StringConsts.ARGUMENT_ERROR + GetType().Name + ".Encode(errorCorrectionLength)");
int dataLength = src.Length - errorCorrectionLength;
if (dataLength <= 0)
throw new NFXException(StringConsts.ARGUMENT_ERROR + GetType().Name + ".Encode: No data bytes provided");
GaloisPolynomial generationPoly = getPolySet(errorCorrectionLength);
int[] infoCoefficients = new int[dataLength];
Array.Copy(src, 0, infoCoefficients, 0, dataLength);
GaloisPolynomial infoPoly = new GaloisPolynomial(m_Field, infoCoefficients);
infoPoly = infoPoly.Multiply(errorCorrectionLength, 1);
GaloisPolynomial remainder, quotient;
infoPoly.Divide(generationPoly, out quotient, out remainder);
int[] coefficients = remainder.Coefficients;
int numZeroCoefficients = errorCorrectionLength - coefficients.Length;
for (var i = 0; i < numZeroCoefficients; i++)
src[dataLength + i] = 0;
Array.Copy(coefficients, 0, src, dataLength + numZeroCoefficients, coefficients.Length);
}
#endregion
#region .pvt. impl.
private GaloisPolynomial getPolySet(int degree)
{
if (degree >= m_PolySet.Count)
{
GaloisPolynomial lastPoly = m_PolySet.Last();
for (int i = m_PolySet.Count; i <= degree; i++)
{
GaloisPolynomial newPoly = lastPoly.Multiply( new GaloisPolynomial(m_Field, new int[] {1, m_Field.Exp(i - 1 + m_Field.GeneratorBase)}));
m_PolySet.Add(newPoly);
lastPoly = newPoly;
}
}
return m_PolySet[degree];
}
#endregion
}//class
}
| 31.074766 | 149 | 0.655639 | [
"Apache-2.0"
] | aumcode/nfx | Source/NFX/IO/ErrorHandling/ReedSolomonEncoder.cs | 3,325 | C# |
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
namespace ConsoleDemo
{
public class Program
{
public static void Main(string[] args)
{
BuildWebHost(args).Run();
}
public static IWebHost BuildWebHost(string[] args) =>
WebHost.CreateDefaultBuilder(args)
.UseStartup<Startup>()
.Build();
}
}
| 26.608696 | 71 | 0.624183 | [
"MPL-2.0",
"MPL-2.0-no-copyleft-exception"
] | wwwlicious/servicestack-seq-requestlogsfeature | src/ConsoleDemo/Program.cs | 614 | C# |
/*
* Bastille.ID Identity Server
* (c) Copyright Talegen, LLC.
*
* 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
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
namespace Bastille.Id.Core.Logging
{
using System;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Bastille.Id.Core.Data;
using Bastille.Id.Core.Data.Entities;
using Bastille.Id.Models.Logging;
using Microsoft.EntityFrameworkCore;
using Talegen.Common.Core.Extensions;
using Talegen.Common.Models.Shared.Queries;
/// <summary>
/// This class provides security logging methods to the application.
/// </summary>
public class AuditLogService
{
/// <summary>
/// Contains an instance of the <see cref="ApplicationDbContext" /> class.
/// </summary>
private readonly ApplicationDbContext context;
/// <summary>
/// Initializes a new instance of the <see cref="AuditLogService" /> class.
/// </summary>
/// <param name="context">Contains an instance of the <see cref="ApplicationDbContext" /> class.</param>
public AuditLogService(ApplicationDbContext context)
{
this.context = context;
}
/// <summary>
/// Reads the audit logs asynchronous.
/// </summary>
/// <param name="filters">The filters.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>Returns a <see cref="PaginatedQueryResultModel{AuditLog}" /> result.</returns>
/// <exception cref="ArgumentNullException">The exception is thrown if the <paramref name="filters" /> parameter is not set.</exception>
public async Task<PaginatedQueryResultModel<AuditLog>> ReadAuditLogsAsync(AuditLogQueryFilterModel filters, CancellationToken cancellationToken)
{
if (filters == null)
{
throw new ArgumentNullException(nameof(filters));
}
IQueryable<AuditLog> query = this.BuildPagedResultsQuery(filters, cancellationToken);
return await this.ExecutePagedQuery(query, filters, cancellationToken);
}
/// <summary>
/// This method is used to log a security event within the application data store.
/// </summary>
/// <param name="securityEvent">Contains the security event.</param>
/// <param name="securityResult">Contains the security event result.</param>
/// <param name="clientAddress">Contains the client IP address.</param>
/// <param name="message">Contains an optional message.</param>
/// <param name="userId">Contains an optional user identity that is related to the event.</param>
/// <param name="location">Contains an optional user location.</param>
/// <param name="cancellationToken">Contains the cancellation token.</param>
/// <returns>Returns a value indicating the record was stored.</returns>
public async Task<bool> LogAsync(AuditEvent securityEvent, AuditResult securityResult, string clientAddress, string message = null, Guid? userId = null, string location = null, CancellationToken cancellationToken = default(CancellationToken))
{
await this.context.AuditLogs
.AddAsync(new AuditLog
{
Event = securityEvent,
Result = securityResult,
ClientAddress = clientAddress,
Message = message,
UserId = userId,
Location = location
}, cancellationToken)
.ConfigureAwait(false);
return await this.context.SaveChangesAsync(cancellationToken).ConfigureAwait(false) > 0;
}
/// <summary>
/// This method is used to build the query LINQ for reuse between retrieval methods in the service class.
/// </summary>
/// <param name="filters">Contains the event log filter parameters object.</param>
/// <param name="cancellationToken">Contains the cancellation token.</param>
/// <returns>Returns an <see cref="IQueryable" /> query class built using optional parameters.</returns>
private IQueryable<AuditLog> BuildPagedResultsQuery(AuditLogQueryFilterModel filters, CancellationToken cancellationToken)
{
if (filters.Limit <= 0)
{
// we cannot allow an unlimited amount of results, so defaulting to 25 if no or invalid value is passed in
filters.Limit = 25;
}
if (filters.Page <= 0)
{
filters.Page = 1;
}
IQueryable<AuditLog> query = this.context.AuditLogs
.Include(u => u.User)
.AsQueryable();
if (!string.IsNullOrWhiteSpace(filters.SearchText))
{
query = query.Where(e => (e.User != null && e.User.UserName.Contains(filters.SearchText) || e.User.Email.Contains(filters.SearchText)) || e.Message.Contains(filters.SearchText) || e.Request.Contains(filters.SearchText) || e.ClientAddress.Equals(filters.SearchText));
}
filters.Events.ForEach(ev =>
{
query = query.Where(q => q.Event == ev);
});
filters.Results.ForEach(re =>
{
query = query.Where(r => r.Result == re);
});
if (filters.Sort.Any())
{
for (int i = 0; i < filters.Sort.Length; i++)
{
if (!string.IsNullOrWhiteSpace(filters.Sort[i]))
{
query = query.OrderByName(filters.Sort[i], filters.Dir[i]);
}
}
}
else
{
query = query.OrderByDescending(u => u.EventDateTime);
}
if (filters.Limit > 0)
{
// set paging selection
query = filters.Page > 1 ? query.Skip((filters.Page - 1) * filters.Limit).Take(filters.Limit) : query.Take(filters.Limit);
}
return query;
}
/// <summary>
/// This method is used to execute the passed query LINQ and return the results as an <see cref="AuditLog" /> list.
/// </summary>
/// <param name="query">Contains the LINQ statement to execute.</param>
/// <param name="filters">Contains the filters used for the query</param>
/// <param name="cancellationToken">Contains a cancellation token.</param>
/// <returns>Returns the results of the query in an <see cref="PaginatedQueryResultModel{AuditLog}" /> model.</returns>
private async Task<PaginatedQueryResultModel<AuditLog>> ExecutePagedQuery(IQueryable<AuditLog> query, AuditLogQueryFilterModel filters, CancellationToken cancellationToken)
{
PaginatedQueryResultModel<AuditLog> result = new PaginatedQueryResultModel<AuditLog>
{
Results = await query.ToListAsync(cancellationToken).ConfigureAwait(false)
};
// if the query returned less than the limit, and we're on the first page, we can use that count for the component results otherwise, we must run a
// separate query to determine the total count
result.TotalCount = filters.Page == 1 && result.Results.Count <= filters.Limit ? result.Results.Count : query.Count();
return result;
}
}
} | 45.174157 | 282 | 0.610869 | [
"Apache-2.0"
] | Bastille-ID/Bastille.Id.Core | src/Logging/AuditLogService.cs | 8,043 | C# |
using System.Threading.Tasks;
using DiabloCms.Models.RequestModel.Identity;
using DiabloCms.Models.ResponseModel.Identity;
using DiabloCms.Server.Infrastructure.Extensions;
using DiabloCms.Server.Infrastructure.Service.CurrentUser;
using DiabloCms.UseCases.Contracts.Identity;
using HarabaSourceGenerators.Common.Attributes;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace DiabloCms.Server.Controllers
{
[Inject]
public partial class IdentityController : ApiController
{
private readonly ICurrentUserService _currentUser;
private readonly IIdentityService _identity;
[HttpPost(nameof(Register))]
public async Task<ActionResult> Register(RegisterRequestModel model)
{
return await _identity
.RegisterAsync(model)
.ToActionResult();
}
[HttpPost(nameof(Login))]
public async Task<ActionResult<LoginResponseModel>> Login(LoginRequestModel model)
{
return await _identity
.LoginAsync(model)
.ToActionResult();
}
[Authorize]
[HttpPut(nameof(ChangeSettings))]
public async Task<ActionResult> ChangeSettings(ChangeSettingsRequestModel model)
{
return await _identity
.ChangeUserSettingsAsync(model, _currentUser.UserId)
.ToActionResult();
}
[Authorize]
[HttpPut(nameof(ChangePassword))]
public async Task<ActionResult> ChangePassword(ChangePasswordRequestModel model)
{
return await _identity
.ChangePasswordAsync(model, _currentUser.UserId)
.ToActionResult();
}
}
} | 33.056604 | 90 | 0.667808 | [
"MIT"
] | eldiablo-1226/Diablo-Cms-Ecommerce | DiabloCms.Server/Controllers/IdentityController.cs | 1,754 | C# |
#region license
// Copyright (c) 2007-2010 Mauricio Scheffer
//
// 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
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#endregion
using System.Collections;
using System.Xml;
using System.Xml.Linq;
using MbUnit.Framework;
using SolrNet.Impl.FieldParsers;
namespace SolrNet.Tests {
[TestFixture]
public class InferringFieldParserTests {
[Test]
public void Collection() {
var doc = new XDocument();
var node = new XElement("arr");
node.Add(new XAttribute("name", "features"));
node.Add(new XElement("str", "hard drive"));
doc.Add(node);
var parser = new InferringFieldParser(new DefaultFieldParser());
var value = parser.Parse(node, typeof (object));
Assert.IsInstanceOfType<ArrayList>(value);
}
}
} | 35.157895 | 76 | 0.674401 | [
"Apache-2.0"
] | Aaronontheweb/SolrNet | SolrNet.Tests/InferringFieldParserTests.cs | 1,338 | C# |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[RequireComponent(typeof(Camera))]
public class EnableCameraDepthBuffer : MonoBehaviour
{
void Start()
{
GetComponent<Camera>().depthTextureMode |= DepthTextureMode.Depth;
}
}
| 22.230769 | 75 | 0.712803 | [
"CC0-1.0"
] | JonaMazu/KoboldKare | Assets/KoboldKare/Scripts/EnableCameraDepthBuffer.cs | 291 | C# |
namespace MapProject.MainScripts
{
public static class Utilities
{
public static T[] ShuffleArray<T>(T[] array, int seed)
{
System.Random prng = new System.Random(seed);
for (int i = 0; i < array.Length - 1; i++)
{
int randomIndex = prng.Next(i, array.Length);
T tempItem = array[randomIndex];
array[randomIndex] = array[i];
array[i] = tempItem;
}
return array;
}
}
}
| 25.285714 | 62 | 0.485876 | [
"MIT"
] | antoniovalentini/greenfield-unity | projects/Unity_MapGenerator/Assets/MapGenerator/Scripts/Utilities.cs | 533 | C# |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Buffers;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Net.Quic.Implementations.MsQuic.Internal;
using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
using static System.Net.Quic.Implementations.MsQuic.Internal.MsQuicNativeMethods;
namespace System.Net.Quic.Implementations.MsQuic
{
internal sealed class MsQuicStream : QuicStreamProvider
{
// Pointer to the underlying stream
// TODO replace all IntPtr with SafeHandles
private readonly IntPtr _ptr;
// Handle to this object for native callbacks.
private GCHandle _handle;
// Delegate that wraps the static function that will be called when receiving an event.
private StreamCallbackDelegate _callback;
// Backing for StreamId
private long _streamId = -1;
// Resettable completions to be used for multiple calls to send, start, and shutdown.
private readonly ResettableCompletionSource<uint> _sendResettableCompletionSource;
// Resettable completions to be used for multiple calls to receive.
private readonly ResettableCompletionSource<uint> _receiveResettableCompletionSource;
private readonly ResettableCompletionSource<uint> _shutdownWriteResettableCompletionSource;
// Buffers to hold during a call to send.
private MemoryHandle[] _bufferArrays = new MemoryHandle[1];
private QuicBuffer[] _sendQuicBuffers = new QuicBuffer[1];
// Handle to hold when sending.
private GCHandle _sendHandle;
// Used to check if StartAsync has been called.
private StartState _started;
private ReadState _readState;
private ShutdownWriteState _shutdownState;
private SendState _sendState;
// Used by the class to indicate that the stream is m_Readable.
private readonly bool _canRead;
// Used by the class to indicate that the stream is writable.
private readonly bool _canWrite;
private volatile bool _disposed = false;
private List<QuicBuffer> _receiveQuicBuffers = new List<QuicBuffer>();
// TODO consider using Interlocked.Exchange instead of a sync if we can avoid it.
private object _sync = new object();
// Creates a new MsQuicStream
internal MsQuicStream(MsQuicConnection connection, QUIC_STREAM_OPEN_FLAG flags, IntPtr nativeObjPtr, bool inbound)
{
Debug.Assert(connection != null);
_ptr = nativeObjPtr;
if (inbound)
{
_started = StartState.Finished;
_canWrite = !flags.HasFlag(QUIC_STREAM_OPEN_FLAG.UNIDIRECTIONAL);
_canRead = true;
}
else
{
_started = StartState.None;
_canWrite = true;
_canRead = !flags.HasFlag(QUIC_STREAM_OPEN_FLAG.UNIDIRECTIONAL);
}
_sendResettableCompletionSource = new ResettableCompletionSource<uint>();
_receiveResettableCompletionSource = new ResettableCompletionSource<uint>();
_shutdownWriteResettableCompletionSource = new ResettableCompletionSource<uint>();
SetCallbackHandler();
}
internal override bool CanRead => _canRead;
internal override bool CanWrite => _canWrite;
internal override long StreamId
{
get
{
if (_streamId == -1)
{
_streamId = GetStreamId();
}
return _streamId;
}
}
internal override ValueTask WriteAsync(ReadOnlyMemory<byte> buffer, CancellationToken cancellationToken = default)
{
return WriteAsync(buffer, endStream: false, cancellationToken);
}
internal override ValueTask WriteAsync(ReadOnlySequence<byte> buffers, CancellationToken cancellationToken = default)
{
return WriteAsync(buffers, endStream: false, cancellationToken);
}
internal override async ValueTask WriteAsync(ReadOnlySequence<byte> buffers, bool endStream, CancellationToken cancellationToken = default)
{
if (NetEventSource.IsEnabled) NetEventSource.Enter(this);
ThrowIfDisposed();
using CancellationTokenRegistration registration = await HandleWriteStartState(cancellationToken);
await SendReadOnlySequenceAsync(buffers, endStream ? QUIC_SEND_FLAG.FIN : QUIC_SEND_FLAG.NONE);
HandleWriteCompletedState();
if (NetEventSource.IsEnabled) NetEventSource.Exit(this);
}
internal override ValueTask WriteAsync(ReadOnlyMemory<ReadOnlyMemory<byte>> buffers, CancellationToken cancellationToken = default)
{
return WriteAsync(buffers, endStream: false, cancellationToken);
}
internal override async ValueTask WriteAsync(ReadOnlyMemory<ReadOnlyMemory<byte>> buffers, bool endStream, CancellationToken cancellationToken = default)
{
if (NetEventSource.IsEnabled) NetEventSource.Enter(this);
ThrowIfDisposed();
using CancellationTokenRegistration registration = await HandleWriteStartState(cancellationToken);
await SendReadOnlyMemoryListAsync(buffers, endStream ? QUIC_SEND_FLAG.FIN : QUIC_SEND_FLAG.NONE);
HandleWriteCompletedState();
if (NetEventSource.IsEnabled) NetEventSource.Exit(this);
}
internal override async ValueTask WriteAsync(ReadOnlyMemory<byte> buffer, bool endStream, CancellationToken cancellationToken = default)
{
if (NetEventSource.IsEnabled) NetEventSource.Enter(this);
ThrowIfDisposed();
using CancellationTokenRegistration registration = await HandleWriteStartState(cancellationToken);
await SendReadOnlyMemoryAsync(buffer, endStream ? QUIC_SEND_FLAG.FIN : QUIC_SEND_FLAG.NONE);
HandleWriteCompletedState();
if (NetEventSource.IsEnabled) NetEventSource.Exit(this);
}
private async ValueTask<CancellationTokenRegistration> HandleWriteStartState(CancellationToken cancellationToken)
{
if (!_canWrite)
{
throw new InvalidOperationException("Writing is not allowed on stream.");
}
lock (_sync)
{
if (_sendState == SendState.Aborted)
{
throw new OperationCanceledException("Sending has already been aborted on the stream");
}
}
CancellationTokenRegistration registration = cancellationToken.Register(() =>
{
bool shouldComplete = false;
lock (_sync)
{
if (_sendState == SendState.None)
{
_sendState = SendState.Aborted;
shouldComplete = true;
}
}
if (shouldComplete)
{
_sendResettableCompletionSource.CompleteException(new OperationCanceledException("Write was canceled"));
}
});
// Implicit start on first write.
if (_started == StartState.None)
{
_started = StartState.Started;
// TODO can optimize this by not having this method be async.
await StartWritesAsync();
}
return registration;
}
private void HandleWriteCompletedState()
{
lock (_sync)
{
if (_sendState == SendState.Finished)
{
_sendState = SendState.None;
}
}
}
internal override async ValueTask<int> ReadAsync(Memory<byte> destination, CancellationToken cancellationToken = default)
{
if (NetEventSource.IsEnabled) NetEventSource.Enter(this);
ThrowIfDisposed();
if (!_canRead)
{
throw new InvalidOperationException("Reading is not allowed on stream.");
}
lock (_sync)
{
if (_readState == ReadState.ReadsCompleted)
{
if (NetEventSource.IsEnabled) NetEventSource.Exit(this);
return 0;
}
else if (_readState == ReadState.Aborted)
{
throw new IOException("Reading has been aborted by the peer.");
}
}
using CancellationTokenRegistration registration = cancellationToken.Register(() =>
{
bool shouldComplete = false;
lock (_sync)
{
if (_readState == ReadState.None)
{
shouldComplete = true;
}
_readState = ReadState.Aborted;
}
if (shouldComplete)
{
_receiveResettableCompletionSource.CompleteException(new OperationCanceledException("Read was canceled"));
}
});
// TODO there could potentially be a perf gain by storing the buffer from the inital read
// This reduces the amount of async calls, however it makes it so MsQuic holds onto the buffers
// longer than it needs to. We will need to benchmark this.
int length = (int)await _receiveResettableCompletionSource.GetValueTask();
int actual = Math.Min(length, destination.Length);
static unsafe void CopyToBuffer(Span<byte> destinationBuffer, List<QuicBuffer> sourceBuffers)
{
Span<byte> slicedBuffer = destinationBuffer;
for (int i = 0; i < sourceBuffers.Count; i++)
{
QuicBuffer nativeBuffer = sourceBuffers[i];
int length = Math.Min((int)nativeBuffer.Length, slicedBuffer.Length);
new Span<byte>(nativeBuffer.Buffer, length).CopyTo(slicedBuffer);
if (length < nativeBuffer.Length)
{
// The buffer passed in was larger that the received data, return
return;
}
slicedBuffer = slicedBuffer.Slice(length);
}
}
CopyToBuffer(destination.Span, _receiveQuicBuffers);
lock (_sync)
{
if (_readState == ReadState.IndividualReadComplete)
{
_receiveQuicBuffers.Clear();
ReceiveComplete(actual);
EnableReceive();
_readState = ReadState.None;
}
}
if (NetEventSource.IsEnabled) NetEventSource.Exit(this);
return actual;
}
// TODO do we want this to be a synchronization mechanism to cancel a pending read
// If so, we need to complete the read here as well.
internal override void AbortRead(long errorCode)
{
if (NetEventSource.IsEnabled) NetEventSource.Enter(this);
ThrowIfDisposed();
lock (_sync)
{
_readState = ReadState.Aborted;
}
MsQuicApi.Api.StreamShutdownDelegate(_ptr, (uint)QUIC_STREAM_SHUTDOWN_FLAG.ABORT_RECV, errorCode);
if (NetEventSource.IsEnabled) NetEventSource.Exit(this);
}
internal override void AbortWrite(long errorCode)
{
if (NetEventSource.IsEnabled) NetEventSource.Enter(this);
ThrowIfDisposed();
bool shouldComplete = false;
lock (_sync)
{
if (_shutdownState == ShutdownWriteState.None)
{
_shutdownState = ShutdownWriteState.Canceled;
shouldComplete = true;
}
}
if (shouldComplete)
{
_shutdownWriteResettableCompletionSource.CompleteException(new QuicStreamAbortedException("Shutdown was aborted.", errorCode));
}
MsQuicApi.Api.StreamShutdownDelegate(_ptr, (uint)QUIC_STREAM_SHUTDOWN_FLAG.ABORT_SEND, errorCode);
if (NetEventSource.IsEnabled) NetEventSource.Exit(this);
}
internal override ValueTask ShutdownWriteCompleted(CancellationToken cancellationToken = default)
{
if (NetEventSource.IsEnabled) NetEventSource.Enter(this);
ThrowIfDisposed();
// TODO do anything to stop writes?
using CancellationTokenRegistration registration = cancellationToken.Register(() =>
{
bool shouldComplete = false;
lock (_sync)
{
if (_shutdownState == ShutdownWriteState.None)
{
_shutdownState = ShutdownWriteState.Canceled;
shouldComplete = true;
}
}
if (shouldComplete)
{
_shutdownWriteResettableCompletionSource.CompleteException(new OperationCanceledException("Shutdown was canceled"));
}
});
if (NetEventSource.IsEnabled) NetEventSource.Exit(this);
return _shutdownWriteResettableCompletionSource.GetTypelessValueTask();
}
internal override void Shutdown()
{
MsQuicApi.Api.StreamShutdownDelegate(_ptr, (uint)QUIC_STREAM_SHUTDOWN_FLAG.GRACEFUL, errorCode: 0);
}
// TODO consider removing sync-over-async with blocking calls.
internal override int Read(Span<byte> buffer)
{
ThrowIfDisposed();
return ReadAsync(buffer.ToArray()).GetAwaiter().GetResult();
}
internal override void Write(ReadOnlySpan<byte> buffer)
{
ThrowIfDisposed();
WriteAsync(buffer.ToArray()).GetAwaiter().GetResult();
}
// MsQuic doesn't support explicit flushing
internal override void Flush()
{
ThrowIfDisposed();
}
// MsQuic doesn't support explicit flushing
internal override Task FlushAsync(CancellationToken cancellationToken = default)
{
ThrowIfDisposed();
return default;
}
public override ValueTask DisposeAsync()
{
if (_disposed)
{
return default;
}
if (NetEventSource.IsEnabled) NetEventSource.Enter(this);
CleanupSendState();
if (_ptr != IntPtr.Zero)
{
// TODO resolve graceful vs abortive dispose here. Will file a separate issue.
//MsQuicApi.Api._streamShutdownDelegate(_ptr, (uint)QUIC_STREAM_SHUTDOWN_FLAG.ABORT, 1);
MsQuicApi.Api.StreamCloseDelegate?.Invoke(_ptr);
}
_handle.Free();
_disposed = true;
if (NetEventSource.IsEnabled) NetEventSource.Exit(this);
return default;
}
public override void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}
~MsQuicStream()
{
Dispose(false);
}
private void Dispose(bool disposing)
{
if (_disposed)
{
return;
}
if (NetEventSource.IsEnabled) NetEventSource.Enter(this);
CleanupSendState();
if (_ptr != IntPtr.Zero)
{
// TODO resolve graceful vs abortive dispose here. Will file a separate issue.
//MsQuicApi.Api._streamShutdownDelegate(_ptr, (uint)QUIC_STREAM_SHUTDOWN_FLAG.ABORT, 1);
MsQuicApi.Api.StreamCloseDelegate?.Invoke(_ptr);
}
_handle.Free();
if (NetEventSource.IsEnabled) NetEventSource.Exit(this);
_disposed = true;
}
private void EnableReceive()
{
MsQuicApi.Api.StreamReceiveSetEnabledDelegate(_ptr, enabled: true);
}
internal static uint NativeCallbackHandler(
IntPtr stream,
IntPtr context,
StreamEvent connectionEventStruct)
{
var handle = GCHandle.FromIntPtr(context);
var quicStream = (MsQuicStream)handle.Target;
return quicStream.HandleEvent(ref connectionEventStruct);
}
private uint HandleEvent(ref StreamEvent evt)
{
uint status = MsQuicStatusCodes.Success;
try
{
switch (evt.Type)
{
// Stream has started.
// Will only be done for outbound streams (inbound streams have already started)
case QUIC_STREAM_EVENT.START_COMPLETE:
status = HandleStartComplete();
break;
// Received data on the stream
case QUIC_STREAM_EVENT.RECEIVE:
{
status = HandleEventRecv(ref evt);
}
break;
// Send has completed.
// Contains a canceled bool to indicate if the send was canceled.
case QUIC_STREAM_EVENT.SEND_COMPLETE:
{
status = HandleEventSendComplete(ref evt);
}
break;
// Peer has told us to shutdown the reading side of the stream.
case QUIC_STREAM_EVENT.PEER_SEND_SHUTDOWN:
{
status = HandleEventPeerSendShutdown();
}
break;
// Peer has told us to abort the reading side of the stream.
case QUIC_STREAM_EVENT.PEER_SEND_ABORTED:
{
status = HandleEventPeerSendAborted();
}
break;
// Peer has stopped receiving data, don't send anymore.
// Potentially throw when WriteAsync/FlushAsync.
case QUIC_STREAM_EVENT.PEER_RECEIVE_ABORTED:
{
status = HandleEventPeerRecvAbort();
}
break;
// Occurs when shutdown is completed for the send side.
// This only happens for shutdown on sending, not receiving
// Receive shutdown can only be abortive.
case QUIC_STREAM_EVENT.SEND_SHUTDOWN_COMPLETE:
{
status = HandleEventSendShutdownComplete(ref evt);
}
break;
// Shutdown for both sending and receiving is completed.
case QUIC_STREAM_EVENT.SHUTDOWN_COMPLETE:
{
status = HandleEventShutdownComplete();
}
break;
default:
break;
}
}
catch (Exception)
{
return MsQuicStatusCodes.InternalError;
}
return status;
}
private unsafe uint HandleEventRecv(ref MsQuicNativeMethods.StreamEvent evt)
{
if (NetEventSource.IsEnabled) NetEventSource.Enter(this);
StreamEventDataRecv receieveEvent = evt.Data.Recv;
for (int i = 0; i < receieveEvent.BufferCount; i++)
{
_receiveQuicBuffers.Add(receieveEvent.Buffers[i]);
}
bool shouldComplete = false;
lock (_sync)
{
if (_readState == ReadState.None)
{
shouldComplete = true;
}
_readState = ReadState.IndividualReadComplete;
}
if (shouldComplete)
{
_receiveResettableCompletionSource.Complete((uint)receieveEvent.TotalBufferLength);
}
if (NetEventSource.IsEnabled) NetEventSource.Exit(this);
return MsQuicStatusCodes.Pending;
}
private uint HandleEventPeerRecvAbort()
{
if (NetEventSource.IsEnabled) NetEventSource.Enter(this);
if (NetEventSource.IsEnabled) NetEventSource.Exit(this);
return MsQuicStatusCodes.Success;
}
private uint HandleStartComplete()
{
if (NetEventSource.IsEnabled) NetEventSource.Enter(this);
bool shouldComplete = false;
lock (_sync)
{
_started = StartState.Finished;
// Check send state before completing as send cancellation is shared between start and send.
if (_sendState == SendState.None)
{
shouldComplete = true;
}
}
if (shouldComplete)
{
_sendResettableCompletionSource.Complete(MsQuicStatusCodes.Success);
}
if (NetEventSource.IsEnabled) NetEventSource.Exit(this);
return MsQuicStatusCodes.Success;
}
private uint HandleEventSendShutdownComplete(ref MsQuicNativeMethods.StreamEvent evt)
{
if (NetEventSource.IsEnabled) NetEventSource.Enter(this);
bool shouldComplete = false;
lock (_sync)
{
if (_shutdownState == ShutdownWriteState.None)
{
_shutdownState = ShutdownWriteState.Finished;
shouldComplete = true;
}
}
if (shouldComplete)
{
_shutdownWriteResettableCompletionSource.Complete(MsQuicStatusCodes.Success);
}
if (NetEventSource.IsEnabled) NetEventSource.Exit(this);
return MsQuicStatusCodes.Success;
}
private uint HandleEventShutdownComplete()
{
if (NetEventSource.IsEnabled) NetEventSource.Enter(this);
bool shouldReadComplete = false;
bool shouldShutdownWriteComplete = false;
lock (_sync)
{
// This event won't occur within the middle of a receive.
if (NetEventSource.IsEnabled) NetEventSource.Info("Completing resettable event source.");
if (_readState == ReadState.None)
{
shouldReadComplete = true;
}
_readState = ReadState.ReadsCompleted;
if (_shutdownState == ShutdownWriteState.None)
{
_shutdownState = ShutdownWriteState.Finished;
shouldShutdownWriteComplete = true;
}
}
if (shouldReadComplete)
{
_receiveResettableCompletionSource.Complete(0);
}
if (shouldShutdownWriteComplete)
{
_shutdownWriteResettableCompletionSource.Complete(MsQuicStatusCodes.Success);
}
if (NetEventSource.IsEnabled) NetEventSource.Exit(this);
return MsQuicStatusCodes.Success;
}
private uint HandleEventPeerSendAborted()
{
if (NetEventSource.IsEnabled) NetEventSource.Enter(this);
bool shouldComplete = false;
lock (_sync)
{
if (_readState == ReadState.None)
{
shouldComplete = true;
}
_readState = ReadState.Aborted;
}
if (shouldComplete)
{
_receiveResettableCompletionSource.CompleteException(new IOException("Reading has been aborted by the peer."));
}
if (NetEventSource.IsEnabled) NetEventSource.Exit(this);
return MsQuicStatusCodes.Success;
}
private uint HandleEventPeerSendShutdown()
{
if (NetEventSource.IsEnabled) NetEventSource.Enter(this);
bool shouldComplete = false;
lock (_sync)
{
// This event won't occur within the middle of a receive.
if (NetEventSource.IsEnabled) NetEventSource.Info("Completing resettable event source.");
if (_readState == ReadState.None)
{
shouldComplete = true;
}
_readState = ReadState.ReadsCompleted;
}
if (shouldComplete)
{
_receiveResettableCompletionSource.Complete(0);
}
if (NetEventSource.IsEnabled) NetEventSource.Exit(this);
return MsQuicStatusCodes.Success;
}
private uint HandleEventSendComplete(ref StreamEvent evt)
{
if (NetEventSource.IsEnabled) NetEventSource.Enter(this);
CleanupSendState();
// TODO throw if a write was canceled.
uint errorCode = evt.Data.SendComplete.Canceled;
bool shouldComplete = false;
lock (_sync)
{
if (_sendState == SendState.None)
{
_sendState = SendState.Finished;
shouldComplete = true;
}
}
if (shouldComplete)
{
_sendResettableCompletionSource.Complete(MsQuicStatusCodes.Success);
}
if (NetEventSource.IsEnabled) NetEventSource.Exit(this);
return MsQuicStatusCodes.Success;
}
private void CleanupSendState()
{
if (_sendHandle.IsAllocated)
{
_sendHandle.Free();
}
// Callings dispose twice on a memory handle should be okay
foreach (MemoryHandle buffer in _bufferArrays)
{
buffer.Dispose();
}
}
private void SetCallbackHandler()
{
_handle = GCHandle.Alloc(this);
_callback = new StreamCallbackDelegate(NativeCallbackHandler);
MsQuicApi.Api.SetCallbackHandlerDelegate(
_ptr,
_callback,
GCHandle.ToIntPtr(_handle));
}
// TODO prevent overlapping sends or consider supporting it.
private unsafe ValueTask SendReadOnlyMemoryAsync(
ReadOnlyMemory<byte> buffer,
QUIC_SEND_FLAG flags)
{
if (buffer.IsEmpty)
{
if ((flags & QUIC_SEND_FLAG.FIN) == QUIC_SEND_FLAG.FIN)
{
// Start graceful shutdown sequence if passed in the fin flag and there is an empty buffer.
MsQuicApi.Api.StreamShutdownDelegate(_ptr, (uint)QUIC_STREAM_SHUTDOWN_FLAG.GRACEFUL, errorCode: 0);
}
return default;
}
MemoryHandle handle = buffer.Pin();
_sendQuicBuffers[0].Length = (uint)buffer.Length;
_sendQuicBuffers[0].Buffer = (byte*)handle.Pointer;
_bufferArrays[0] = handle;
_sendHandle = GCHandle.Alloc(_sendQuicBuffers, GCHandleType.Pinned);
var quicBufferPointer = (QuicBuffer*)Marshal.UnsafeAddrOfPinnedArrayElement(_sendQuicBuffers, 0);
uint status = MsQuicApi.Api.StreamSendDelegate(
_ptr,
quicBufferPointer,
bufferCount: 1,
(uint)flags,
_ptr);
if (!MsQuicStatusHelper.SuccessfulStatusCode(status))
{
CleanupSendState();
// TODO this may need to be an aborted exception.
QuicExceptionHelpers.ThrowIfFailed(status,
"Could not send data to peer.");
}
return _sendResettableCompletionSource.GetTypelessValueTask();
}
private unsafe ValueTask SendReadOnlySequenceAsync(
ReadOnlySequence<byte> buffers,
QUIC_SEND_FLAG flags)
{
if (buffers.IsEmpty)
{
if ((flags & QUIC_SEND_FLAG.FIN) == QUIC_SEND_FLAG.FIN)
{
// Start graceful shutdown sequence if passed in the fin flag and there is an empty buffer.
MsQuicApi.Api.StreamShutdownDelegate(_ptr, (uint)QUIC_STREAM_SHUTDOWN_FLAG.GRACEFUL, errorCode: 0);
}
return default;
}
uint count = 0;
foreach (ReadOnlyMemory<byte> buffer in buffers)
{
++count;
}
if (_sendQuicBuffers.Length < count)
{
_sendQuicBuffers = new QuicBuffer[count];
_bufferArrays = new MemoryHandle[count];
}
count = 0;
foreach (ReadOnlyMemory<byte> buffer in buffers)
{
MemoryHandle handle = buffer.Pin();
_sendQuicBuffers[count].Length = (uint)buffer.Length;
_sendQuicBuffers[count].Buffer = (byte*)handle.Pointer;
_bufferArrays[count] = handle;
++count;
}
_sendHandle = GCHandle.Alloc(_sendQuicBuffers, GCHandleType.Pinned);
var quicBufferPointer = (QuicBuffer*)Marshal.UnsafeAddrOfPinnedArrayElement(_sendQuicBuffers, 0);
uint status = MsQuicApi.Api.StreamSendDelegate(
_ptr,
quicBufferPointer,
count,
(uint)flags,
_ptr);
if (!MsQuicStatusHelper.SuccessfulStatusCode(status))
{
CleanupSendState();
// TODO this may need to be an aborted exception.
QuicExceptionHelpers.ThrowIfFailed(status,
"Could not send data to peer.");
}
return _sendResettableCompletionSource.GetTypelessValueTask();
}
private unsafe ValueTask SendReadOnlyMemoryListAsync(
ReadOnlyMemory<ReadOnlyMemory<byte>> buffers,
QUIC_SEND_FLAG flags)
{
if (buffers.IsEmpty)
{
if ((flags & QUIC_SEND_FLAG.FIN) == QUIC_SEND_FLAG.FIN)
{
// Start graceful shutdown sequence if passed in the fin flag and there is an empty buffer.
MsQuicApi.Api.StreamShutdownDelegate(_ptr, (uint)QUIC_STREAM_SHUTDOWN_FLAG.GRACEFUL, errorCode: 0);
}
return default;
}
ReadOnlyMemory<byte>[] array = buffers.ToArray();
uint length = (uint)array.Length;
if (_sendQuicBuffers.Length < length)
{
_sendQuicBuffers = new QuicBuffer[length];
_bufferArrays = new MemoryHandle[length];
}
for (int i = 0; i < length; i++)
{
ReadOnlyMemory<byte> buffer = array[i];
MemoryHandle handle = buffer.Pin();
_sendQuicBuffers[i].Length = (uint)buffer.Length;
_sendQuicBuffers[i].Buffer = (byte*)handle.Pointer;
_bufferArrays[i] = handle;
}
_sendHandle = GCHandle.Alloc(_sendQuicBuffers, GCHandleType.Pinned);
var quicBufferPointer = (QuicBuffer*)Marshal.UnsafeAddrOfPinnedArrayElement(_sendQuicBuffers, 0);
uint status = MsQuicApi.Api.StreamSendDelegate(
_ptr,
quicBufferPointer,
length,
(uint)flags,
_ptr);
if (!MsQuicStatusHelper.SuccessfulStatusCode(status))
{
CleanupSendState();
// TODO this may need to be an aborted exception.
QuicExceptionHelpers.ThrowIfFailed(status,
"Could not send data to peer.");
}
return _sendResettableCompletionSource.GetTypelessValueTask();
}
private ValueTask<uint> StartWritesAsync()
{
uint status = MsQuicApi.Api.StreamStartDelegate(
_ptr,
(uint)QUIC_STREAM_START_FLAG.ASYNC);
QuicExceptionHelpers.ThrowIfFailed(status, "Could not start stream.");
return _sendResettableCompletionSource.GetValueTask();
}
private void ReceiveComplete(int bufferLength)
{
uint status = MsQuicApi.Api.StreamReceiveCompleteDelegate(_ptr, (ulong)bufferLength);
QuicExceptionHelpers.ThrowIfFailed(status, "Could not complete receive call.");
}
// This can fail if the stream isn't started.
private unsafe long GetStreamId()
{
return (long)MsQuicParameterHelpers.GetULongParam(MsQuicApi.Api, _ptr, (uint)QUIC_PARAM_LEVEL.STREAM, (uint)QUIC_PARAM_STREAM.ID);
}
private void ThrowIfDisposed()
{
if (_disposed)
{
throw new ObjectDisposedException(nameof(MsQuicStream));
}
}
private enum StartState
{
None,
Started,
Finished
}
private enum ReadState
{
None,
IndividualReadComplete,
ReadsCompleted,
Aborted
}
private enum ShutdownWriteState
{
None,
Canceled,
Finished
}
private enum SendState
{
None,
Aborted,
Finished
}
}
}
| 33.69815 | 161 | 0.551578 | [
"MIT"
] | Davilink/runtime | src/libraries/System.Net.Quic/src/System/Net/Quic/Implementations/MsQuic/MsQuicStream.cs | 34,610 | C# |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Threading;
public class UserException : Exception {
public static int Main(String [] args) {
int counter = 0;
String str = "Done";
for (int j = 0; j < 100; j++){
try {
if (j % 2 == 0)
counter = j / (j % 2);
else
throw new UserException();
}
catch ( UserException ) {
counter++;
continue;
}
catch (ArithmeticException ){
counter--;
continue;
}
catch (Exception ){}
finally {
counter++;
}
}
if (counter == 100){
Console.WriteLine( "TryCatch Test Passed" );
return 100;
}
else{
Console.WriteLine( "TryCatch Test Failed" );
return 1;
}
Console.WriteLine(str);
}
}
| 20.357143 | 71 | 0.581287 | [
"MIT"
] | 2m0nd/runtime | src/tests/baseservices/exceptions/regressions/V1/SEH/VJ/UserException.cs | 855 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using NUnit.Framework;
using UnityEngine;
using ModestTree;
using Assert=ModestTree.Assert;
namespace Zenject.Tests.Bindings
{
[TestFixture]
public class TestFromSiblingComponent : ZenjectIntegrationTestFixture
{
[Test]
public void TestBasic()
{
Container.Bind<Bar>().FromNewComponentOnNewGameObject().AsSingle().NonLazy();
Container.Bind<Foo>().FromNewComponentSibling();
Initialize();
Assert.IsEqual(Container.Resolve<Bar>().gameObject.GetComponents<Foo>().Length, 1);
}
[Test]
public void TestInvalidUse()
{
Container.Bind<Qux>().AsSingle().NonLazy();
Container.Bind<Foo>().FromNewComponentSibling();
Assert.Throws(() => Initialize());
}
[Test]
public void TestBasic2()
{
var gameObject = Container.CreateEmptyGameObject("Test");
Container.Bind<Gorp>().FromNewComponentOn(gameObject).AsSingle().NonLazy();
Container.Bind<Bar>().FromNewComponentOn(gameObject).AsSingle().NonLazy();
Container.Bind<Foo>().FromNewComponentSibling();
Initialize();
var bar = Container.Resolve<Bar>();
var gorp = Container.Resolve<Gorp>();
Assert.IsEqual(bar.gameObject.GetComponents<Foo>().Length, 1);
Assert.IsEqual(bar.Foo, gorp.Foo);
}
public class Qux
{
public Qux(Foo foo)
{
}
}
public class Foo : MonoBehaviour
{
}
public class Bar : MonoBehaviour
{
[Inject]
public Foo Foo;
}
public class Gorp : MonoBehaviour
{
[Inject]
public Foo Foo;
}
}
}
| 24.662338 | 95 | 0.562401 | [
"MIT"
] | mikecann/Zenject | UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/Editor/TestFromSiblingComponent.cs | 1,901 | C# |
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using Xunit;
namespace Mundane.Tests.Tests_MundaneEngineResponse;
[ExcludeFromCodeCoverage]
public static class Operator_NotEquals_Returns_False
{
[Fact]
public static async Task When_The_Objects_Have_The_Same_Values()
{
var request = RequestHelper.Request();
const int statusCode = 200;
BodyWriter bodyWriter = o => o.Write("Hello World!");
var headers = new[] { new KeyValuePair<string, string>(Guid.NewGuid().ToString(), Guid.NewGuid().ToString()) };
var first = await MundaneEngine.ExecuteRequest(
MundaneEndpointFactory.Create(
() => new Response(statusCode, bodyWriter).AddHeader(
new HeaderValue(headers[0].Key, headers[0].Value))),
request);
var second = await MundaneEngine.ExecuteRequest(
MundaneEndpointFactory.Create(
() => new Response(statusCode, bodyWriter).AddHeader(
new HeaderValue(headers[0].Key, headers[0].Value))),
request);
Assert.False(first != second);
}
}
| 29.25 | 113 | 0.746439 | [
"MIT"
] | adambarclay/mundane | tests/Mundane.Tests/Tests_MundaneEngineResponse/Operator_NotEquals_Returns_False.cs | 1,053 | C# |
// <copyright file="ActivitySourceAdapter.cs" company="OpenTelemetry Authors">
// Copyright The OpenTelemetry Authors
//
// 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
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Diagnostics;
using System.Linq.Expressions;
using OpenTelemetry.Internal;
namespace OpenTelemetry.Trace
{
/// <summary>
/// This class encapsulates the logic for performing ActivitySource actions
/// on Activities that are created using default ActivitySource.
/// All activities created without using ActivitySource will have a
/// default ActivitySource assigned to them with their name as empty string.
/// This class is to be used by instrumentation adapters which converts/augments
/// activies created without ActivitySource, into something which closely
/// matches the one created using ActivitySource.
/// </summary>
/// <remarks>
/// This class is meant to be only used when writing new Instrumentation for
/// libraries which are already instrumented with DiagnosticSource/Activity
/// following this doc:
/// https://github.com/dotnet/runtime/blob/master/src/libraries/System.Diagnostics.DiagnosticSource/src/ActivityUserGuide.md.
/// </remarks>
internal class ActivitySourceAdapter
{
private static readonly Action<Activity, ActivityKind> SetKindProperty = CreateActivityKindSetter();
private static readonly Action<Activity, ActivitySource> SetActivitySourceProperty = CreateActivitySourceSetter();
private readonly Sampler sampler;
private readonly Action<Activity> getRequestedDataAction;
private BaseProcessor<Activity> activityProcessor;
internal ActivitySourceAdapter(Sampler sampler, BaseProcessor<Activity> activityProcessor)
{
this.sampler = sampler ?? throw new ArgumentNullException(nameof(sampler));
if (this.sampler is AlwaysOnSampler)
{
this.getRequestedDataAction = this.RunGetRequestedDataAlwaysOnSampler;
}
else if (this.sampler is AlwaysOffSampler)
{
this.getRequestedDataAction = this.RunGetRequestedDataAlwaysOffSampler;
}
else
{
this.getRequestedDataAction = this.RunGetRequestedDataOtherSampler;
}
this.activityProcessor = activityProcessor;
}
private ActivitySourceAdapter()
{
}
/// <summary>
/// Method that starts an <see cref="Activity"/>.
/// </summary>
/// <param name="activity"><see cref="Activity"/> to be started.</param>
/// <param name="kind">ActivityKind to be set of the activity.</param>
/// <param name="source">ActivitySource to be set of the activity.</param>
[System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1062:Validate arguments of public methods", Justification = "ActivityProcessor is hot path")]
public void Start(Activity activity, ActivityKind kind, ActivitySource source)
{
OpenTelemetrySdkEventSource.Log.ActivityStarted(activity);
SetActivitySourceProperty(activity, source);
SetKindProperty(activity, kind);
this.getRequestedDataAction(activity);
if (activity.IsAllDataRequested)
{
this.activityProcessor?.OnStart(activity);
}
}
/// <summary>
/// Method that stops an <see cref="Activity"/>.
/// </summary>
/// <param name="activity"><see cref="Activity"/> to be stopped.</param>
public void Stop(Activity activity)
{
OpenTelemetrySdkEventSource.Log.ActivityStopped(activity);
if (activity?.IsAllDataRequested ?? false)
{
this.activityProcessor?.OnEnd(activity);
}
}
internal void UpdateProcessor(BaseProcessor<Activity> processor)
{
this.activityProcessor = processor;
}
private static Action<Activity, ActivitySource> CreateActivitySourceSetter()
{
ParameterExpression instance = Expression.Parameter(typeof(Activity), "instance");
ParameterExpression propertyValue = Expression.Parameter(typeof(ActivitySource), "propertyValue");
var body = Expression.Assign(Expression.Property(instance, "Source"), propertyValue);
return Expression.Lambda<Action<Activity, ActivitySource>>(body, instance, propertyValue).Compile();
}
private static Action<Activity, ActivityKind> CreateActivityKindSetter()
{
ParameterExpression instance = Expression.Parameter(typeof(Activity), "instance");
ParameterExpression propertyValue = Expression.Parameter(typeof(ActivityKind), "propertyValue");
var body = Expression.Assign(Expression.Property(instance, "Kind"), propertyValue);
return Expression.Lambda<Action<Activity, ActivityKind>>(body, instance, propertyValue).Compile();
}
private void RunGetRequestedDataAlwaysOnSampler(Activity activity)
{
activity.IsAllDataRequested = true;
activity.ActivityTraceFlags |= ActivityTraceFlags.Recorded;
}
private void RunGetRequestedDataAlwaysOffSampler(Activity activity)
{
activity.IsAllDataRequested = false;
}
private void RunGetRequestedDataOtherSampler(Activity activity)
{
ActivityContext parentContext;
// Check activity.ParentId alone is sufficient to normally determine if a activity is root or not. But if one uses activity.SetParentId to override the TraceId (without intending to set an actual parent), then additional check of parentspanid being empty is required to confirm if an activity is root or not.
// This checker can be removed, once Activity exposes an API to customize ID Generation (https://github.com/dotnet/runtime/issues/46704) or issue https://github.com/dotnet/runtime/issues/46706 is addressed.
if (string.IsNullOrEmpty(activity.ParentId) || activity.ParentSpanId.ToHexString() == "0000000000000000")
{
parentContext = default;
}
else if (activity.Parent != null)
{
parentContext = activity.Parent.Context;
}
else
{
parentContext = new ActivityContext(
activity.TraceId,
activity.ParentSpanId,
activity.ActivityTraceFlags,
activity.TraceStateString,
isRemote: true);
}
var samplingParameters = new SamplingParameters(
parentContext,
activity.TraceId,
activity.DisplayName,
activity.Kind,
activity.TagObjects,
activity.Links);
var samplingResult = this.sampler.ShouldSample(samplingParameters);
switch (samplingResult.Decision)
{
case SamplingDecision.Drop:
activity.IsAllDataRequested = false;
break;
case SamplingDecision.RecordOnly:
activity.IsAllDataRequested = true;
break;
case SamplingDecision.RecordAndSample:
activity.IsAllDataRequested = true;
activity.ActivityTraceFlags |= ActivityTraceFlags.Recorded;
break;
}
if (samplingResult.Decision != SamplingDecision.Drop)
{
foreach (var att in samplingResult.Attributes)
{
activity.SetTag(att.Key, att.Value);
}
}
}
}
}
| 43.381443 | 320 | 0.639971 | [
"Apache-2.0"
] | HankiDesign/opentelemetry-dotnet | src/OpenTelemetry/Trace/ActivitySourceAdapter.cs | 8,416 | C# |
using Newtonsoft.Json.Linq;
using Org.BouncyCastle.Crypto.Digests;
using Org.BouncyCastle.Crypto.Engines;
using Org.BouncyCastle.Crypto.Generators;
using Org.BouncyCastle.Crypto.Parameters;
using Org.BouncyCastle.Crypto.Signers;
using Org.BouncyCastle.Math;
using System;
namespace WalletWasabi.Crypto
{
public class BlindingRsaPubKey : IEquatable<BlindingRsaPubKey>
{
public RsaKeyParameters KeyParameters { get; private set; }
public BigInteger Modulus => KeyParameters.Modulus;
public BigInteger Exponent => KeyParameters.Exponent;
public BlindingRsaPubKey(RsaKeyParameters keyParameters)
{
KeyParameters = keyParameters ?? throw new ArgumentNullException(nameof(keyParameters));
}
public BlindingRsaPubKey(BigInteger modulus, BigInteger exponent)
{
if (modulus == null) throw new ArgumentNullException(nameof(modulus));
if (exponent == null) throw new ArgumentNullException(nameof(exponent));
KeyParameters = new RsaKeyParameters(false, modulus, exponent);
}
public (BigInteger BlindingFactor, byte[] BlindedData) Blind(byte[] data)
{
// generate blinding factor with pubkey
var blindingFactorGenerator = new RsaBlindingFactorGenerator();
blindingFactorGenerator.Init(KeyParameters);
BigInteger blindingFactor = blindingFactorGenerator.GenerateBlindingFactor();
// blind data
var blindingParams = new RsaBlindingParameters(KeyParameters, blindingFactor);
var blinder = new PssSigner(
cipher: new RsaBlindingEngine(),
digest: new Sha256Digest(),
saltLen: 32);
blinder.Init(forSigning: true, parameters: blindingParams);
blinder.BlockUpdate(data, 0, data.Length);
byte[] blindedData = blinder.GenerateSignature();
return (blindingFactor, blindedData);
}
/// <returns>unblinded signature</returns>
public byte[] UnblindSignature(byte[] blindedSignature, BigInteger blindingFactor)
{
var blindingEngine = new RsaBlindingEngine();
var blindingParams = new RsaBlindingParameters(KeyParameters, blindingFactor);
blindingEngine.Init(forEncryption: false, param: blindingParams);
return blindingEngine.ProcessBlock(blindedSignature, 0, blindedSignature.Length);
}
public bool Verify(byte[] signature, byte[] data)
{
var verifier = new PssSigner(
cipher: new RsaEngine(),
digest: new Sha256Digest(),
saltLen: 32);
verifier.Init(forSigning: false, parameters: KeyParameters);
verifier.BlockUpdate(data, 0, data.Length);
return verifier.VerifySignature(signature);
}
public string ToJson()
{
dynamic json = new JObject();
json.Modulus = Modulus.ToString();
json.Exponent = Exponent.ToString();
return json.ToString();
}
public static BlindingRsaPubKey CreateFromJson(string json)
{
var token = JToken.Parse(json);
var mod = new BigInteger(token.Value<string>("Modulus"));
var exp = new BigInteger(token.Value<string>("Exponent"));
return new BlindingRsaPubKey(mod, exp);
}
#region Equality
public override bool Equals(object obj) => obj is BlindingRsaPubKey && this == (BlindingRsaPubKey)obj;
public bool Equals(BlindingRsaPubKey other) => this == other;
public override int GetHashCode()
{
var hash = Modulus.GetHashCode();
hash = hash ^ Exponent.GetHashCode();
return hash;
}
public static bool operator ==(BlindingRsaPubKey x, BlindingRsaPubKey y)
{
if (ReferenceEquals(x, y)) return true;
if ((object)x == null ^ (object)y == null) return false;
return
x.Modulus.Equals(y.Modulus)
&& x.Exponent.Equals(y.Exponent);
}
public static bool operator !=(BlindingRsaPubKey x, BlindingRsaPubKey y) => !(x == y);
#endregion Equality
}
}
| 31.084746 | 104 | 0.738277 | [
"MIT"
] | r0otChiXor/WalletWasabi | WalletWasabi/Crypto/BlindingRsaPubKey.cs | 3,670 | C# |
using UnrealBuildTool;
public class RunebergVRPlugin : ModuleRules
{
public RunebergVRPlugin(ReadOnlyTargetRules Target) : base(Target)
{
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
PublicIncludePaths.AddRange(new string[] { "RunebergVRPlugin/Source/Public" });
PrivateIncludePaths.AddRange(new string[] {"RunebergVRPlugin/Source/Private"});
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "HeadMountedDisplay", "NavigationSystem"});
PrivateDependencyModuleNames.AddRange(new string[] { "Slate", "SlateCore"});
DynamicallyLoadedModuleNames.AddRange(new string[] { "RunebergVRPlugin" });
}
} | 38.578947 | 150 | 0.701228 | [
"MIT"
] | acttogreen/RunebergVRPlugin | Plugins/RunebergVRPlugin/Source/RunebergVRPlugin.Build.cs | 733 | C# |
namespace Atata
{
/// <summary>
/// Defines the modes of <see cref="AtataContext.Current"/> property.
/// </summary>
public enum AtataContextModeOfCurrent
{
/// <summary>
/// The <see cref="AtataContext.Current"/> value is thread-static (unique for each thread).
/// </summary>
ThreadStatic = 1,
/// <summary>
/// The <see cref="AtataContext.Current"/> value is static (same for all threads).
/// </summary>
Static,
/// <summary>
/// The <see cref="AtataContext.Current"/> value is unique for each given asynchronous control flow.
/// </summary>
AsyncLocal
}
}
| 28.5 | 108 | 0.567251 | [
"Apache-2.0"
] | EvgeniyShunevich/Atata | src/Atata/Context/AtataContextModeOfCurrent.cs | 686 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using Foundation;
using AppKit;
using CoreGraphics;
namespace NSScrollViewContentCentered
{
public partial class MyClipView : AppKit.NSClipView
{
public MyClipView(IntPtr handle) : base(handle)
{
}
public override bool IsFlipped { get => true; }
public override void DrawRect(CoreGraphics.CGRect dirtyRect)
{
NSColor.Gray.SetFill();
NSGraphics.RectFill(this.Bounds);
}
public override CoreGraphics.CGRect ConstrainBoundsRect(CoreGraphics.CGRect proposedBounds)
{
var documentBounds = this.DocumentView.Bounds;
var delta = new CGPoint(
documentBounds.Width - proposedBounds.Width,
documentBounds.Height - proposedBounds.Height);
var x = (delta.X < 0) ? (delta.X / 2) : Math.Max(0, Math.Min(proposedBounds.X, delta.X));
var y = (delta.Y < 0) ? (delta.Y / 2) : Math.Max(0, Math.Min(proposedBounds.Y, delta.Y));
proposedBounds.X = (System.nfloat)x;
proposedBounds.Y = (System.nfloat)y;
return proposedBounds;
}
}
}
| 31.973684 | 101 | 0.618107 | [
"MIT"
] | gesource/Xamarin.Mac-Sample | NSScrollViewContentCentered/NSScrollViewContentCentered/MyClipView.cs | 1,217 | C# |
using Abp.Runtime.Caching;
namespace Roc.CMS.Web.Authentication.TwoFactor
{
public static class TwoFactorCodeCacheExtensions
{
public static ITypedCache<string, TwoFactorCodeCacheItem> GetTwoFactorCodeCache(this ICacheManager cacheManager)
{
return cacheManager.GetCache<string, TwoFactorCodeCacheItem>(TwoFactorCodeCacheItem.CacheName);
}
}
} | 32.75 | 120 | 0.748092 | [
"MIT"
] | RocChing/Roc.CMS | src/Roc.CMS.Web.Core/Authentication/TwoFactor/TwoFactorCodeCacheExtensions.cs | 395 | C# |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System;
using System.IO;
using System.Management.Automation;
namespace Microsoft.PowerShell.FileUtility
{
[Alias("gdi")]
[Cmdlet(VerbsCommon.Get, "DriveInfo")]
[OutputType(typeof(DriveInfo))]
public sealed class GetDriveInfoCommand : PSCmdlet
{
protected override void ProcessRecord()
{
foreach (DriveInfo driveInfo in DriveInfo.GetDrives())
{
WriteObject(driveInfo);
}
}
}
}
| 23.291667 | 66 | 0.635063 | [
"MIT"
] | PowerShell/FileUtility | src/code/GetDiskInfo.cs | 559 | C# |
#pragma checksum "/workspaces/AspNetCoreMVC/MvcMovie/Views/Shared/_Layout.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "25460ebf3e2073880696f832b079e76eff25d280"
// <auto-generated/>
#pragma warning disable 1591
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(AspNetCore.Views_Shared__Layout), @"mvc.1.0.view", @"/Views/Shared/_Layout.cshtml")]
namespace AspNetCore
{
#line hidden
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.AspNetCore.Mvc.ViewFeatures;
#nullable restore
#line 1 "/workspaces/AspNetCoreMVC/MvcMovie/Views/_ViewImports.cshtml"
using MvcMovie;
#line default
#line hidden
#nullable disable
#nullable restore
#line 2 "/workspaces/AspNetCoreMVC/MvcMovie/Views/_ViewImports.cshtml"
using MvcMovie.Models;
#line default
#line hidden
#nullable disable
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"25460ebf3e2073880696f832b079e76eff25d280", @"/Views/Shared/_Layout.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"686ad2e38abb871af45be971520cc6c3156da389", @"/Views/_ViewImports.cshtml")]
public class Views_Shared__Layout : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<dynamic>
{
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("rel", new global::Microsoft.AspNetCore.Html.HtmlString("stylesheet"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_1 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("href", new global::Microsoft.AspNetCore.Html.HtmlString("~/lib/bootstrap/dist/css/bootstrap.min.css"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_2 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("href", new global::Microsoft.AspNetCore.Html.HtmlString("~/css/site.css"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_3 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("class", new global::Microsoft.AspNetCore.Html.HtmlString("navbar-brand"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_4 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("asp-controller", "Movies", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_5 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("asp-action", "Index", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_6 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("class", new global::Microsoft.AspNetCore.Html.HtmlString("nav-link text-dark"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_7 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("asp-area", "", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_8 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("asp-controller", "Home", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_9 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("asp-action", "Privacy", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_10 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("src", new global::Microsoft.AspNetCore.Html.HtmlString("~/lib/jquery/dist/jquery.min.js"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_11 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("src", new global::Microsoft.AspNetCore.Html.HtmlString("~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_12 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("src", "~/js/site.js", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line hidden
#pragma warning disable 0649
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext;
#pragma warning restore 0649
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner();
#pragma warning disable 0169
private string __tagHelperStringValueBuffer;
#pragma warning restore 0169
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __backed__tagHelperScopeManager = null;
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __tagHelperScopeManager
{
get
{
if (__backed__tagHelperScopeManager == null)
{
__backed__tagHelperScopeManager = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope);
}
return __backed__tagHelperScopeManager;
}
}
private global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.HeadTagHelper __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_HeadTagHelper;
private global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper;
private global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper;
private global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper;
private global::Microsoft.AspNetCore.Mvc.TagHelpers.ScriptTagHelper __Microsoft_AspNetCore_Mvc_TagHelpers_ScriptTagHelper;
#pragma warning disable 1998
public async override global::System.Threading.Tasks.Task ExecuteAsync()
{
WriteLiteral("<!DOCTYPE html>\r\n<html lang=\"en\">\r\n");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("head", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "25460ebf3e2073880696f832b079e76eff25d2807905", async() => {
WriteLiteral("\r\n <meta charset=\"utf-8\" />\r\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\r\n <title>");
#nullable restore
#line 6 "/workspaces/AspNetCoreMVC/MvcMovie/Views/Shared/_Layout.cshtml"
Write(ViewData["Title"]);
#line default
#line hidden
#nullable disable
WriteLiteral(" - Movie App</title>\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("link", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "25460ebf3e2073880696f832b079e76eff25d2808521", async() => {
}
);
__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
await __tagHelperExecutionContext.SetOutputContentAsync();
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("link", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "25460ebf3e2073880696f832b079e76eff25d2809684", async() => {
}
);
__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
await __tagHelperExecutionContext.SetOutputContentAsync();
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n");
}
);
__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_HeadTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.HeadTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_HeadTagHelper);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
await __tagHelperExecutionContext.SetOutputContentAsync();
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("body", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "25460ebf3e2073880696f832b079e76eff25d28011539", async() => {
WriteLiteral("\r\n <header>\r\n <nav class=\"navbar navbar-expand-sm navbar-toggleable-sm navbar-light bg-white border-bottom box-shadow mb-3\">\r\n <div class=\"container\">\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "25460ebf3e2073880696f832b079e76eff25d28011993", async() => {
WriteLiteral("Movie App");
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_4.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_5.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
await __tagHelperExecutionContext.SetOutputContentAsync();
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral(@"
<button class=""navbar-toggler"" type=""button"" data-toggle=""collapse"" data-target="".navbar-collapse"" aria-controls=""navbarSupportedContent""
aria-expanded=""false"" aria-label=""Toggle navigation"">
<span class=""navbar-toggler-icon""></span>
</button>
<div class=""navbar-collapse collapse d-sm-inline-flex flex-sm-row-reverse"">
<ul class=""navbar-nav flex-grow-1"">
<li class=""nav-item"">
");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "25460ebf3e2073880696f832b079e76eff25d28014068", async() => {
WriteLiteral("Home");
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_6);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Area = (string)__tagHelperAttribute_7.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_7);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_8.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_8);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_5.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
await __tagHelperExecutionContext.SetOutputContentAsync();
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n </li>\r\n <li class=\"nav-item\">\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "25460ebf3e2073880696f832b079e76eff25d28015886", async() => {
WriteLiteral("Privacy");
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_6);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Area = (string)__tagHelperAttribute_7.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_7);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_8.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_8);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_9.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_9);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
await __tagHelperExecutionContext.SetOutputContentAsync();
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n </nav>\r\n </header>\r\n <div class=\"container\">\r\n <main role=\"main\" class=\"pb-3\">\r\n ");
#nullable restore
#line 34 "/workspaces/AspNetCoreMVC/MvcMovie/Views/Shared/_Layout.cshtml"
Write(RenderBody());
#line default
#line hidden
#nullable disable
WriteLiteral("\r\n </main>\r\n </div>\r\n\r\n <footer class=\"border-top footer text-muted\">\r\n <div class=\"container\">\r\n © 2020 - Movie App - ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "25460ebf3e2073880696f832b079e76eff25d28018203", async() => {
WriteLiteral("Privacy");
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Area = (string)__tagHelperAttribute_7.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_7);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_8.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_8);
__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_9.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_9);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
await __tagHelperExecutionContext.SetOutputContentAsync();
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n </div>\r\n </footer>\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "25460ebf3e2073880696f832b079e76eff25d28019865", async() => {
}
);
__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_10);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
await __tagHelperExecutionContext.SetOutputContentAsync();
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "25460ebf3e2073880696f832b079e76eff25d28020952", async() => {
}
);
__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_11);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
await __tagHelperExecutionContext.SetOutputContentAsync();
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "25460ebf3e2073880696f832b079e76eff25d28022039", async() => {
}
);
__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
__Microsoft_AspNetCore_Mvc_TagHelpers_ScriptTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.ScriptTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_ScriptTagHelper);
__Microsoft_AspNetCore_Mvc_TagHelpers_ScriptTagHelper.Src = (string)__tagHelperAttribute_12.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_12);
#nullable restore
#line 45 "/workspaces/AspNetCoreMVC/MvcMovie/Views/Shared/_Layout.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_ScriptTagHelper.AppendVersion = true;
#line default
#line hidden
#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("asp-append-version", __Microsoft_AspNetCore_Mvc_TagHelpers_ScriptTagHelper.AppendVersion, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
await __tagHelperExecutionContext.SetOutputContentAsync();
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
#nullable restore
#line 46 "/workspaces/AspNetCoreMVC/MvcMovie/Views/Shared/_Layout.cshtml"
Write(RenderSection("Scripts", required: false));
#line default
#line hidden
#nullable disable
WriteLiteral("\r\n");
}
);
__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper>();
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
await __tagHelperExecutionContext.SetOutputContentAsync();
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n</html>\r\n");
}
#pragma warning restore 1998
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; }
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
public global::Microsoft.AspNetCore.Mvc.IUrlHelper Url { get; private set; }
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
public global::Microsoft.AspNetCore.Mvc.IViewComponentHelper Component { get; private set; }
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
public global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper Json { get; private set; }
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
public global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<dynamic> Html { get; private set; }
}
}
#pragma warning restore 1591
| 82.226115 | 384 | 0.724699 | [
"MIT"
] | fsdrw08/MovieApp | MvcMovie/obj/Debug/netcoreapp3.1/Razor/Views/Shared/_Layout.cshtml.g.cs | 25,819 | C# |
using System;
using System.Collections.Generic;
using Hl7.Fhir.Introspection;
using Hl7.Fhir.Validation;
using System.Linq;
using System.Runtime.Serialization;
/*
Copyright (c) 2011+, HL7, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of HL7 nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
//
// Generated on Tue, 27 Jun 2017 15:02:56 GMT for FHIR v1.0.2
//
using Hl7.Fhir.Model;
namespace Hl7.Fhir.Model
{
/*
* A class with methods to retrieve information about the
* FHIR definitions based on which this assembly was generated.
*/
public static partial class ModelInfo
{
public static List<string> SupportedResources =
new List<string>
{
"Account",
"AllergyIntolerance",
"Appointment",
"AppointmentResponse",
"AuditEvent",
"Basic",
"Binary",
"BodySite",
"Bundle",
"CarePlan",
"Claim",
"ClaimResponse",
"ClinicalImpression",
"Communication",
"CommunicationRequest",
"Composition",
"ConceptMap",
"Condition",
"Conformance",
"Contract",
"Coverage",
"DataElement",
"DetectedIssue",
"Device",
"DeviceComponent",
"DeviceMetric",
"DeviceUseRequest",
"DeviceUseStatement",
"DiagnosticOrder",
"DiagnosticReport",
"DocumentManifest",
"DocumentReference",
"EligibilityRequest",
"EligibilityResponse",
"Encounter",
"EnrollmentRequest",
"EnrollmentResponse",
"EpisodeOfCare",
"ExplanationOfBenefit",
"FamilyMemberHistory",
"Flag",
"Goal",
"Group",
"HealthcareService",
"ImagingObjectSelection",
"ImagingStudy",
"Immunization",
"ImmunizationRecommendation",
"ImplementationGuide",
"List",
"Location",
"Media",
"Medication",
"MedicationAdministration",
"MedicationDispense",
"MedicationOrder",
"MedicationStatement",
"MessageHeader",
"NamingSystem",
"NutritionOrder",
"Observation",
"OperationDefinition",
"OperationOutcome",
"Order",
"OrderResponse",
"Organization",
"Parameters",
"Patient",
"PaymentNotice",
"PaymentReconciliation",
"Person",
"Practitioner",
"Procedure",
"ProcedureRequest",
"ProcessRequest",
"ProcessResponse",
"Provenance",
"Questionnaire",
"QuestionnaireResponse",
"ReferralRequest",
"RelatedPerson",
"RiskAssessment",
"Schedule",
"SearchParameter",
"Slot",
"Specimen",
"StructureDefinition",
"Subscription",
"Substance",
"SupplyDelivery",
"SupplyRequest",
"TestScript",
"ValueSet",
"VisionPrescription",
};
public static string Version
{
get { return "1.0.2"; }
}
public static Dictionary<string,Type> FhirTypeToCsType =
new Dictionary<string,Type>()
{
{ "Address", typeof(Hl7.Fhir.Model.Address) },
{ "Age", typeof(Age) },
{ "Annotation", typeof(Hl7.Fhir.Model.Annotation) },
{ "Attachment", typeof(Hl7.Fhir.Model.Attachment) },
{ "BackboneElement", typeof(BackboneElement) },
{ "base64Binary", typeof(Hl7.Fhir.Model.Base64Binary) },
{ "boolean", typeof(Hl7.Fhir.Model.FhirBoolean) },
{ "code", typeof(Hl7.Fhir.Model.Code) },
{ "CodeableConcept", typeof(Hl7.Fhir.Model.CodeableConcept) },
{ "Coding", typeof(Hl7.Fhir.Model.Coding) },
{ "ContactPoint", typeof(Hl7.Fhir.Model.ContactPoint) },
{ "Count", typeof(Count) },
{ "date", typeof(Hl7.Fhir.Model.Date) },
{ "dateTime", typeof(Hl7.Fhir.Model.FhirDateTime) },
{ "decimal", typeof(Hl7.Fhir.Model.FhirDecimal) },
{ "Distance", typeof(Distance) },
{ "Duration", typeof(Duration) },
{ "Element", typeof(Element) },
{ "ElementDefinition", typeof(Hl7.Fhir.Model.ElementDefinition) },
{ "Extension", typeof(Hl7.Fhir.Model.Extension) },
{ "HumanName", typeof(Hl7.Fhir.Model.HumanName) },
{ "id", typeof(Hl7.Fhir.Model.Id) },
{ "Identifier", typeof(Hl7.Fhir.Model.Identifier) },
{ "instant", typeof(Hl7.Fhir.Model.Instant) },
{ "integer", typeof(Hl7.Fhir.Model.Integer) },
{ "markdown", typeof(Hl7.Fhir.Model.Markdown) },
{ "Meta", typeof(Hl7.Fhir.Model.Meta) },
{ "Money", typeof(Money) },
{ "Narrative", typeof(Narrative) },
{ "oid", typeof(Hl7.Fhir.Model.Oid) },
{ "Period", typeof(Hl7.Fhir.Model.Period) },
{ "positiveInt", typeof(Hl7.Fhir.Model.PositiveInt) },
{ "Quantity", typeof(Quantity) },
{ "Range", typeof(Hl7.Fhir.Model.Range) },
{ "Ratio", typeof(Hl7.Fhir.Model.Ratio) },
{ "Reference", typeof(Hl7.Fhir.Model.ResourceReference) },
{ "SampledData", typeof(Hl7.Fhir.Model.SampledData) },
{ "Signature", typeof(Hl7.Fhir.Model.Signature) },
{ "SimpleQuantity", typeof(SimpleQuantity) },
{ "string", typeof(Hl7.Fhir.Model.FhirString) },
{ "time", typeof(Hl7.Fhir.Model.Time) },
{ "Timing", typeof(Hl7.Fhir.Model.Timing) },
{ "unsignedInt", typeof(Hl7.Fhir.Model.UnsignedInt) },
{ "uri", typeof(Hl7.Fhir.Model.FhirUri) },
{ "uuid", typeof(Hl7.Fhir.Model.Uuid) },
{ "Account", typeof(Hl7.Fhir.Model.Account) },
{ "AllergyIntolerance", typeof(Hl7.Fhir.Model.AllergyIntolerance) },
{ "Appointment", typeof(Hl7.Fhir.Model.Appointment) },
{ "AppointmentResponse", typeof(Hl7.Fhir.Model.AppointmentResponse) },
{ "AuditEvent", typeof(Hl7.Fhir.Model.AuditEvent) },
{ "Basic", typeof(Hl7.Fhir.Model.Basic) },
{ "Binary", typeof(Hl7.Fhir.Model.Binary) },
{ "BodySite", typeof(Hl7.Fhir.Model.BodySite) },
{ "Bundle", typeof(Hl7.Fhir.Model.Bundle) },
{ "CarePlan", typeof(Hl7.Fhir.Model.CarePlan) },
{ "Claim", typeof(Hl7.Fhir.Model.Claim) },
{ "ClaimResponse", typeof(Hl7.Fhir.Model.ClaimResponse) },
{ "ClinicalImpression", typeof(Hl7.Fhir.Model.ClinicalImpression) },
{ "Communication", typeof(Hl7.Fhir.Model.Communication) },
{ "CommunicationRequest", typeof(Hl7.Fhir.Model.CommunicationRequest) },
{ "Composition", typeof(Hl7.Fhir.Model.Composition) },
{ "ConceptMap", typeof(Hl7.Fhir.Model.ConceptMap) },
{ "Condition", typeof(Hl7.Fhir.Model.Condition) },
{ "Conformance", typeof(Hl7.Fhir.Model.Conformance) },
{ "Contract", typeof(Hl7.Fhir.Model.Contract) },
{ "Coverage", typeof(Hl7.Fhir.Model.Coverage) },
{ "DataElement", typeof(Hl7.Fhir.Model.DataElement) },
{ "DetectedIssue", typeof(Hl7.Fhir.Model.DetectedIssue) },
{ "Device", typeof(Hl7.Fhir.Model.Device) },
{ "DeviceComponent", typeof(Hl7.Fhir.Model.DeviceComponent) },
{ "DeviceMetric", typeof(Hl7.Fhir.Model.DeviceMetric) },
{ "DeviceUseRequest", typeof(Hl7.Fhir.Model.DeviceUseRequest) },
{ "DeviceUseStatement", typeof(Hl7.Fhir.Model.DeviceUseStatement) },
{ "DiagnosticOrder", typeof(Hl7.Fhir.Model.DiagnosticOrder) },
{ "DiagnosticReport", typeof(Hl7.Fhir.Model.DiagnosticReport) },
{ "DocumentManifest", typeof(Hl7.Fhir.Model.DocumentManifest) },
{ "DocumentReference", typeof(Hl7.Fhir.Model.DocumentReference) },
{ "DomainResource", typeof(Hl7.Fhir.Model.DomainResource) },
{ "EligibilityRequest", typeof(Hl7.Fhir.Model.EligibilityRequest) },
{ "EligibilityResponse", typeof(Hl7.Fhir.Model.EligibilityResponse) },
{ "Encounter", typeof(Hl7.Fhir.Model.Encounter) },
{ "EnrollmentRequest", typeof(Hl7.Fhir.Model.EnrollmentRequest) },
{ "EnrollmentResponse", typeof(Hl7.Fhir.Model.EnrollmentResponse) },
{ "EpisodeOfCare", typeof(Hl7.Fhir.Model.EpisodeOfCare) },
{ "ExplanationOfBenefit", typeof(Hl7.Fhir.Model.ExplanationOfBenefit) },
{ "FamilyMemberHistory", typeof(Hl7.Fhir.Model.FamilyMemberHistory) },
{ "Flag", typeof(Hl7.Fhir.Model.Flag) },
{ "Goal", typeof(Hl7.Fhir.Model.Goal) },
{ "Group", typeof(Hl7.Fhir.Model.Group) },
{ "HealthcareService", typeof(Hl7.Fhir.Model.HealthcareService) },
{ "ImagingObjectSelection", typeof(Hl7.Fhir.Model.ImagingObjectSelection) },
{ "ImagingStudy", typeof(Hl7.Fhir.Model.ImagingStudy) },
{ "Immunization", typeof(Hl7.Fhir.Model.Immunization) },
{ "ImmunizationRecommendation", typeof(Hl7.Fhir.Model.ImmunizationRecommendation) },
{ "ImplementationGuide", typeof(Hl7.Fhir.Model.ImplementationGuide) },
{ "List", typeof(Hl7.Fhir.Model.List) },
{ "Location", typeof(Hl7.Fhir.Model.Location) },
{ "Media", typeof(Hl7.Fhir.Model.Media) },
{ "Medication", typeof(Hl7.Fhir.Model.Medication) },
{ "MedicationAdministration", typeof(Hl7.Fhir.Model.MedicationAdministration) },
{ "MedicationDispense", typeof(Hl7.Fhir.Model.MedicationDispense) },
{ "MedicationOrder", typeof(Hl7.Fhir.Model.MedicationOrder) },
{ "MedicationStatement", typeof(Hl7.Fhir.Model.MedicationStatement) },
{ "MessageHeader", typeof(Hl7.Fhir.Model.MessageHeader) },
{ "NamingSystem", typeof(Hl7.Fhir.Model.NamingSystem) },
{ "NutritionOrder", typeof(Hl7.Fhir.Model.NutritionOrder) },
{ "Observation", typeof(Hl7.Fhir.Model.Observation) },
{ "OperationDefinition", typeof(Hl7.Fhir.Model.OperationDefinition) },
{ "OperationOutcome", typeof(Hl7.Fhir.Model.OperationOutcome) },
{ "Order", typeof(Hl7.Fhir.Model.Order) },
{ "OrderResponse", typeof(Hl7.Fhir.Model.OrderResponse) },
{ "Organization", typeof(Hl7.Fhir.Model.Organization) },
{ "Parameters", typeof(Hl7.Fhir.Model.Parameters) },
{ "Patient", typeof(Hl7.Fhir.Model.Patient) },
{ "PaymentNotice", typeof(Hl7.Fhir.Model.PaymentNotice) },
{ "PaymentReconciliation", typeof(Hl7.Fhir.Model.PaymentReconciliation) },
{ "Person", typeof(Hl7.Fhir.Model.Person) },
{ "Practitioner", typeof(Hl7.Fhir.Model.Practitioner) },
{ "Procedure", typeof(Hl7.Fhir.Model.Procedure) },
{ "ProcedureRequest", typeof(Hl7.Fhir.Model.ProcedureRequest) },
{ "ProcessRequest", typeof(Hl7.Fhir.Model.ProcessRequest) },
{ "ProcessResponse", typeof(Hl7.Fhir.Model.ProcessResponse) },
{ "Provenance", typeof(Hl7.Fhir.Model.Provenance) },
{ "Questionnaire", typeof(Hl7.Fhir.Model.Questionnaire) },
{ "QuestionnaireResponse", typeof(Hl7.Fhir.Model.QuestionnaireResponse) },
{ "ReferralRequest", typeof(Hl7.Fhir.Model.ReferralRequest) },
{ "RelatedPerson", typeof(Hl7.Fhir.Model.RelatedPerson) },
{ "Resource", typeof(Hl7.Fhir.Model.Resource) },
{ "RiskAssessment", typeof(Hl7.Fhir.Model.RiskAssessment) },
{ "Schedule", typeof(Hl7.Fhir.Model.Schedule) },
{ "SearchParameter", typeof(Hl7.Fhir.Model.SearchParameter) },
{ "Slot", typeof(Hl7.Fhir.Model.Slot) },
{ "Specimen", typeof(Hl7.Fhir.Model.Specimen) },
{ "StructureDefinition", typeof(Hl7.Fhir.Model.StructureDefinition) },
{ "Subscription", typeof(Hl7.Fhir.Model.Subscription) },
{ "Substance", typeof(Hl7.Fhir.Model.Substance) },
{ "SupplyDelivery", typeof(Hl7.Fhir.Model.SupplyDelivery) },
{ "SupplyRequest", typeof(Hl7.Fhir.Model.SupplyRequest) },
{ "TestScript", typeof(Hl7.Fhir.Model.TestScript) },
{ "ValueSet", typeof(Hl7.Fhir.Model.ValueSet) },
{ "VisionPrescription", typeof(Hl7.Fhir.Model.VisionPrescription) },
};
public static Dictionary<Type,string> FhirCsTypeToString =
new Dictionary<Type,string>()
{
{ typeof(Hl7.Fhir.Model.Address), "Address" },
{ typeof(Age), "Age" },
{ typeof(Hl7.Fhir.Model.Annotation), "Annotation" },
{ typeof(Hl7.Fhir.Model.Attachment), "Attachment" },
{ typeof(BackboneElement), "BackboneElement" },
{ typeof(Hl7.Fhir.Model.Base64Binary), "base64Binary" },
{ typeof(Hl7.Fhir.Model.FhirBoolean), "boolean" },
{ typeof(Hl7.Fhir.Model.Code), "code" },
{ typeof(Hl7.Fhir.Model.CodeableConcept), "CodeableConcept" },
{ typeof(Hl7.Fhir.Model.Coding), "Coding" },
{ typeof(Hl7.Fhir.Model.ContactPoint), "ContactPoint" },
{ typeof(Count), "Count" },
{ typeof(Hl7.Fhir.Model.Date), "date" },
{ typeof(Hl7.Fhir.Model.FhirDateTime), "dateTime" },
{ typeof(Hl7.Fhir.Model.FhirDecimal), "decimal" },
{ typeof(Distance), "Distance" },
{ typeof(Duration), "Duration" },
{ typeof(Element), "Element" },
{ typeof(Hl7.Fhir.Model.ElementDefinition), "ElementDefinition" },
{ typeof(Hl7.Fhir.Model.Extension), "Extension" },
{ typeof(Hl7.Fhir.Model.HumanName), "HumanName" },
{ typeof(Hl7.Fhir.Model.Id), "id" },
{ typeof(Hl7.Fhir.Model.Identifier), "Identifier" },
{ typeof(Hl7.Fhir.Model.Instant), "instant" },
{ typeof(Hl7.Fhir.Model.Integer), "integer" },
{ typeof(Hl7.Fhir.Model.Markdown), "markdown" },
{ typeof(Hl7.Fhir.Model.Meta), "Meta" },
{ typeof(Money), "Money" },
{ typeof(Narrative), "Narrative" },
{ typeof(Hl7.Fhir.Model.Oid), "oid" },
{ typeof(Hl7.Fhir.Model.Period), "Period" },
{ typeof(Hl7.Fhir.Model.PositiveInt), "positiveInt" },
{ typeof(Quantity), "Quantity" },
{ typeof(Hl7.Fhir.Model.Range), "Range" },
{ typeof(Hl7.Fhir.Model.Ratio), "Ratio" },
{ typeof(Hl7.Fhir.Model.ResourceReference), "Reference" },
{ typeof(Hl7.Fhir.Model.SampledData), "SampledData" },
{ typeof(Hl7.Fhir.Model.Signature), "Signature" },
{ typeof(SimpleQuantity), "SimpleQuantity" },
{ typeof(Hl7.Fhir.Model.FhirString), "string" },
{ typeof(Hl7.Fhir.Model.Time), "time" },
{ typeof(Hl7.Fhir.Model.Timing), "Timing" },
{ typeof(Hl7.Fhir.Model.UnsignedInt), "unsignedInt" },
{ typeof(Hl7.Fhir.Model.FhirUri), "uri" },
{ typeof(Hl7.Fhir.Model.Uuid), "uuid" },
{ typeof(Hl7.Fhir.Model.Account), "Account" },
{ typeof(Hl7.Fhir.Model.AllergyIntolerance), "AllergyIntolerance" },
{ typeof(Hl7.Fhir.Model.Appointment), "Appointment" },
{ typeof(Hl7.Fhir.Model.AppointmentResponse), "AppointmentResponse" },
{ typeof(Hl7.Fhir.Model.AuditEvent), "AuditEvent" },
{ typeof(Hl7.Fhir.Model.Basic), "Basic" },
{ typeof(Hl7.Fhir.Model.Binary), "Binary" },
{ typeof(Hl7.Fhir.Model.BodySite), "BodySite" },
{ typeof(Hl7.Fhir.Model.Bundle), "Bundle" },
{ typeof(Hl7.Fhir.Model.CarePlan), "CarePlan" },
{ typeof(Hl7.Fhir.Model.Claim), "Claim" },
{ typeof(Hl7.Fhir.Model.ClaimResponse), "ClaimResponse" },
{ typeof(Hl7.Fhir.Model.ClinicalImpression), "ClinicalImpression" },
{ typeof(Hl7.Fhir.Model.Communication), "Communication" },
{ typeof(Hl7.Fhir.Model.CommunicationRequest), "CommunicationRequest" },
{ typeof(Hl7.Fhir.Model.Composition), "Composition" },
{ typeof(Hl7.Fhir.Model.ConceptMap), "ConceptMap" },
{ typeof(Hl7.Fhir.Model.Condition), "Condition" },
{ typeof(Hl7.Fhir.Model.Conformance), "Conformance" },
{ typeof(Hl7.Fhir.Model.Contract), "Contract" },
{ typeof(Hl7.Fhir.Model.Coverage), "Coverage" },
{ typeof(Hl7.Fhir.Model.DataElement), "DataElement" },
{ typeof(Hl7.Fhir.Model.DetectedIssue), "DetectedIssue" },
{ typeof(Hl7.Fhir.Model.Device), "Device" },
{ typeof(Hl7.Fhir.Model.DeviceComponent), "DeviceComponent" },
{ typeof(Hl7.Fhir.Model.DeviceMetric), "DeviceMetric" },
{ typeof(Hl7.Fhir.Model.DeviceUseRequest), "DeviceUseRequest" },
{ typeof(Hl7.Fhir.Model.DeviceUseStatement), "DeviceUseStatement" },
{ typeof(Hl7.Fhir.Model.DiagnosticOrder), "DiagnosticOrder" },
{ typeof(Hl7.Fhir.Model.DiagnosticReport), "DiagnosticReport" },
{ typeof(Hl7.Fhir.Model.DocumentManifest), "DocumentManifest" },
{ typeof(Hl7.Fhir.Model.DocumentReference), "DocumentReference" },
{ typeof(Hl7.Fhir.Model.DomainResource), "DomainResource" },
{ typeof(Hl7.Fhir.Model.EligibilityRequest), "EligibilityRequest" },
{ typeof(Hl7.Fhir.Model.EligibilityResponse), "EligibilityResponse" },
{ typeof(Hl7.Fhir.Model.Encounter), "Encounter" },
{ typeof(Hl7.Fhir.Model.EnrollmentRequest), "EnrollmentRequest" },
{ typeof(Hl7.Fhir.Model.EnrollmentResponse), "EnrollmentResponse" },
{ typeof(Hl7.Fhir.Model.EpisodeOfCare), "EpisodeOfCare" },
{ typeof(Hl7.Fhir.Model.ExplanationOfBenefit), "ExplanationOfBenefit" },
{ typeof(Hl7.Fhir.Model.FamilyMemberHistory), "FamilyMemberHistory" },
{ typeof(Hl7.Fhir.Model.Flag), "Flag" },
{ typeof(Hl7.Fhir.Model.Goal), "Goal" },
{ typeof(Hl7.Fhir.Model.Group), "Group" },
{ typeof(Hl7.Fhir.Model.HealthcareService), "HealthcareService" },
{ typeof(Hl7.Fhir.Model.ImagingObjectSelection), "ImagingObjectSelection" },
{ typeof(Hl7.Fhir.Model.ImagingStudy), "ImagingStudy" },
{ typeof(Hl7.Fhir.Model.Immunization), "Immunization" },
{ typeof(Hl7.Fhir.Model.ImmunizationRecommendation), "ImmunizationRecommendation" },
{ typeof(Hl7.Fhir.Model.ImplementationGuide), "ImplementationGuide" },
{ typeof(Hl7.Fhir.Model.List), "List" },
{ typeof(Hl7.Fhir.Model.Location), "Location" },
{ typeof(Hl7.Fhir.Model.Media), "Media" },
{ typeof(Hl7.Fhir.Model.Medication), "Medication" },
{ typeof(Hl7.Fhir.Model.MedicationAdministration), "MedicationAdministration" },
{ typeof(Hl7.Fhir.Model.MedicationDispense), "MedicationDispense" },
{ typeof(Hl7.Fhir.Model.MedicationOrder), "MedicationOrder" },
{ typeof(Hl7.Fhir.Model.MedicationStatement), "MedicationStatement" },
{ typeof(Hl7.Fhir.Model.MessageHeader), "MessageHeader" },
{ typeof(Hl7.Fhir.Model.NamingSystem), "NamingSystem" },
{ typeof(Hl7.Fhir.Model.NutritionOrder), "NutritionOrder" },
{ typeof(Hl7.Fhir.Model.Observation), "Observation" },
{ typeof(Hl7.Fhir.Model.OperationDefinition), "OperationDefinition" },
{ typeof(Hl7.Fhir.Model.OperationOutcome), "OperationOutcome" },
{ typeof(Hl7.Fhir.Model.Order), "Order" },
{ typeof(Hl7.Fhir.Model.OrderResponse), "OrderResponse" },
{ typeof(Hl7.Fhir.Model.Organization), "Organization" },
{ typeof(Hl7.Fhir.Model.Parameters), "Parameters" },
{ typeof(Hl7.Fhir.Model.Patient), "Patient" },
{ typeof(Hl7.Fhir.Model.PaymentNotice), "PaymentNotice" },
{ typeof(Hl7.Fhir.Model.PaymentReconciliation), "PaymentReconciliation" },
{ typeof(Hl7.Fhir.Model.Person), "Person" },
{ typeof(Hl7.Fhir.Model.Practitioner), "Practitioner" },
{ typeof(Hl7.Fhir.Model.Procedure), "Procedure" },
{ typeof(Hl7.Fhir.Model.ProcedureRequest), "ProcedureRequest" },
{ typeof(Hl7.Fhir.Model.ProcessRequest), "ProcessRequest" },
{ typeof(Hl7.Fhir.Model.ProcessResponse), "ProcessResponse" },
{ typeof(Hl7.Fhir.Model.Provenance), "Provenance" },
{ typeof(Hl7.Fhir.Model.Questionnaire), "Questionnaire" },
{ typeof(Hl7.Fhir.Model.QuestionnaireResponse), "QuestionnaireResponse" },
{ typeof(Hl7.Fhir.Model.ReferralRequest), "ReferralRequest" },
{ typeof(Hl7.Fhir.Model.RelatedPerson), "RelatedPerson" },
{ typeof(Hl7.Fhir.Model.Resource), "Resource" },
{ typeof(Hl7.Fhir.Model.RiskAssessment), "RiskAssessment" },
{ typeof(Hl7.Fhir.Model.Schedule), "Schedule" },
{ typeof(Hl7.Fhir.Model.SearchParameter), "SearchParameter" },
{ typeof(Hl7.Fhir.Model.Slot), "Slot" },
{ typeof(Hl7.Fhir.Model.Specimen), "Specimen" },
{ typeof(Hl7.Fhir.Model.StructureDefinition), "StructureDefinition" },
{ typeof(Hl7.Fhir.Model.Subscription), "Subscription" },
{ typeof(Hl7.Fhir.Model.Substance), "Substance" },
{ typeof(Hl7.Fhir.Model.SupplyDelivery), "SupplyDelivery" },
{ typeof(Hl7.Fhir.Model.SupplyRequest), "SupplyRequest" },
{ typeof(Hl7.Fhir.Model.TestScript), "TestScript" },
{ typeof(Hl7.Fhir.Model.ValueSet), "ValueSet" },
{ typeof(Hl7.Fhir.Model.VisionPrescription), "VisionPrescription" },
};
public static List<SearchParamDefinition> SearchParameters =
new List<SearchParamDefinition>
{
new SearchParamDefinition() { Resource = "Account", Name = "balance", Description = @"How much is in account?", Type = SearchParamType.Quantity, Path = new string[] { "Account.balance", }, XPath = "f:Account/f:balance", Expression = "Account.balance" },
new SearchParamDefinition() { Resource = "Account", Name = "identifier", Description = @"Account number", Type = SearchParamType.Token, Path = new string[] { "Account.identifier", }, XPath = "f:Account/f:identifier", Expression = "Account.identifier" },
new SearchParamDefinition() { Resource = "Account", Name = "name", Description = @"Human-readable label", Type = SearchParamType.String, Path = new string[] { "Account.name", }, XPath = "f:Account/f:name", Expression = "Account.name" },
new SearchParamDefinition() { Resource = "Account", Name = "owner", Description = @"Who is responsible?", Type = SearchParamType.Reference, Path = new string[] { "Account.owner", }, Target = new ResourceType[] { ResourceType.Organization, }, XPath = "f:Account/f:owner", Expression = "Account.owner" },
new SearchParamDefinition() { Resource = "Account", Name = "patient", Description = @"What is account tied to?", Type = SearchParamType.Reference, Path = new string[] { "Account.subject", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:Account/f:subject", Expression = "Account.subject" },
new SearchParamDefinition() { Resource = "Account", Name = "period", Description = @"Transaction window", Type = SearchParamType.Date, Path = new string[] { "Account.coveragePeriod", }, XPath = "f:Account/f:coveragePeriod", Expression = "Account.coveragePeriod" },
new SearchParamDefinition() { Resource = "Account", Name = "status", Description = @"active | inactive", Type = SearchParamType.Token, Path = new string[] { "Account.status", }, XPath = "f:Account/f:status", Expression = "Account.status" },
new SearchParamDefinition() { Resource = "Account", Name = "subject", Description = @"What is account tied to?", Type = SearchParamType.Reference, Path = new string[] { "Account.subject", }, Target = new ResourceType[] { ResourceType.Device, ResourceType.HealthcareService, ResourceType.Location, ResourceType.Organization, ResourceType.Patient, ResourceType.Practitioner, }, XPath = "f:Account/f:subject", Expression = "Account.subject" },
new SearchParamDefinition() { Resource = "Account", Name = "type", Description = @"E.g. patient, expense, depreciation", Type = SearchParamType.Token, Path = new string[] { "Account.type", }, XPath = "f:Account/f:type", Expression = "Account.type" },
new SearchParamDefinition() { Resource = "AllergyIntolerance", Name = "category", Description = @"food | medication | environment | other - Category of Substance", Type = SearchParamType.Token, Path = new string[] { "AllergyIntolerance.category", }, XPath = "f:AllergyIntolerance/f:category", Expression = "AllergyIntolerance.category" },
new SearchParamDefinition() { Resource = "AllergyIntolerance", Name = "criticality", Description = @"CRITL | CRITH | CRITU", Type = SearchParamType.Token, Path = new string[] { "AllergyIntolerance.criticality", }, XPath = "f:AllergyIntolerance/f:criticality", Expression = "AllergyIntolerance.criticality" },
new SearchParamDefinition() { Resource = "AllergyIntolerance", Name = "date", Description = @"When recorded", Type = SearchParamType.Date, Path = new string[] { "AllergyIntolerance.recordedDate", }, XPath = "f:AllergyIntolerance/f:recordedDate", Expression = "AllergyIntolerance.recordedDate" },
new SearchParamDefinition() { Resource = "AllergyIntolerance", Name = "identifier", Description = @"External ids for this item", Type = SearchParamType.Token, Path = new string[] { "AllergyIntolerance.identifier", }, XPath = "f:AllergyIntolerance/f:identifier", Expression = "AllergyIntolerance.identifier" },
new SearchParamDefinition() { Resource = "AllergyIntolerance", Name = "last-date", Description = @"Date(/time) of last known occurrence of a reaction", Type = SearchParamType.Date, Path = new string[] { "AllergyIntolerance.lastOccurence", }, XPath = "f:AllergyIntolerance/f:lastOccurence", Expression = "AllergyIntolerance.lastOccurence" },
new SearchParamDefinition() { Resource = "AllergyIntolerance", Name = "manifestation", Description = @"Clinical symptoms/signs associated with the Event", Type = SearchParamType.Token, Path = new string[] { "AllergyIntolerance.reaction.manifestation", }, XPath = "f:AllergyIntolerance/f:reaction/f:manifestation", Expression = "AllergyIntolerance.reaction.manifestation" },
new SearchParamDefinition() { Resource = "AllergyIntolerance", Name = "onset", Description = @"Date(/time) when manifestations showed", Type = SearchParamType.Date, Path = new string[] { "AllergyIntolerance.reaction.onset", }, XPath = "f:AllergyIntolerance/f:reaction/f:onset", Expression = "AllergyIntolerance.reaction.onset" },
new SearchParamDefinition() { Resource = "AllergyIntolerance", Name = "patient", Description = @"Who the sensitivity is for", Type = SearchParamType.Reference, Path = new string[] { "AllergyIntolerance.patient", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:AllergyIntolerance/f:patient", Expression = "AllergyIntolerance.patient" },
new SearchParamDefinition() { Resource = "AllergyIntolerance", Name = "recorder", Description = @"Who recorded the sensitivity", Type = SearchParamType.Reference, Path = new string[] { "AllergyIntolerance.recorder", }, Target = new ResourceType[] { ResourceType.Patient, ResourceType.Practitioner, }, XPath = "f:AllergyIntolerance/f:recorder", Expression = "AllergyIntolerance.recorder" },
new SearchParamDefinition() { Resource = "AllergyIntolerance", Name = "reporter", Description = @"Source of the information about the allergy", Type = SearchParamType.Reference, Path = new string[] { "AllergyIntolerance.reporter", }, Target = new ResourceType[] { ResourceType.Patient, ResourceType.Practitioner, ResourceType.RelatedPerson, }, XPath = "f:AllergyIntolerance/f:reporter", Expression = "AllergyIntolerance.reporter" },
new SearchParamDefinition() { Resource = "AllergyIntolerance", Name = "route", Description = @"How the subject was exposed to the substance", Type = SearchParamType.Token, Path = new string[] { "AllergyIntolerance.reaction.exposureRoute", }, XPath = "f:AllergyIntolerance/f:reaction/f:exposureRoute", Expression = "AllergyIntolerance.reaction.exposureRoute" },
new SearchParamDefinition() { Resource = "AllergyIntolerance", Name = "severity", Description = @"mild | moderate | severe (of event as a whole)", Type = SearchParamType.Token, Path = new string[] { "AllergyIntolerance.reaction.severity", }, XPath = "f:AllergyIntolerance/f:reaction/f:severity", Expression = "AllergyIntolerance.reaction.severity" },
new SearchParamDefinition() { Resource = "AllergyIntolerance", Name = "status", Description = @"active | unconfirmed | confirmed | inactive | resolved | refuted | entered-in-error", Type = SearchParamType.Token, Path = new string[] { "AllergyIntolerance.status", }, XPath = "f:AllergyIntolerance/f:status", Expression = "AllergyIntolerance.status" },
new SearchParamDefinition() { Resource = "AllergyIntolerance", Name = "substance", Description = @"Substance, (or class) considered to be responsible for risk", Type = SearchParamType.Token, Path = new string[] { "AllergyIntolerance.substance", "AllergyIntolerance.reaction.substance", }, XPath = "f:AllergyIntolerance/f:substance | f:AllergyIntolerance/f:reaction/f:substance", Expression = "AllergyIntolerance.substance | AllergyIntolerance.reaction.substance" },
new SearchParamDefinition() { Resource = "AllergyIntolerance", Name = "type", Description = @"allergy | intolerance - Underlying mechanism (if known)", Type = SearchParamType.Token, Path = new string[] { "AllergyIntolerance.type", }, XPath = "f:AllergyIntolerance/f:type", Expression = "AllergyIntolerance.type" },
new SearchParamDefinition() { Resource = "Appointment", Name = "actor", Description = @"Any one of the individuals participating in the appointment", Type = SearchParamType.Reference, Path = new string[] { "Appointment.participant.actor", }, Target = new ResourceType[] { ResourceType.Device, ResourceType.HealthcareService, ResourceType.Location, ResourceType.Patient, ResourceType.Practitioner, ResourceType.RelatedPerson, }, XPath = "f:Appointment/f:participant/f:actor", Expression = "Appointment.participant.actor" },
new SearchParamDefinition() { Resource = "Appointment", Name = "date", Description = @"Appointment date/time.", Type = SearchParamType.Date, Path = new string[] { "Appointment.start", }, XPath = "f:Appointment/f:start", Expression = "Appointment.start" },
new SearchParamDefinition() { Resource = "Appointment", Name = "identifier", Description = @"An Identifier of the Appointment", Type = SearchParamType.Token, Path = new string[] { "Appointment.identifier", }, XPath = "f:Appointment/f:identifier", Expression = "Appointment.identifier" },
new SearchParamDefinition() { Resource = "Appointment", Name = "location", Description = @"This location is listed in the participants of the appointment", Type = SearchParamType.Reference, Path = new string[] { "Appointment.participant.actor", }, Target = new ResourceType[] { ResourceType.Location, }, XPath = "f:Appointment/f:participant/f:actor", Expression = "Appointment.participant.actor" },
new SearchParamDefinition() { Resource = "Appointment", Name = "part-status", Description = @"The Participation status of the subject, or other participant on the appointment. Can be used to locate participants that have not responded to meeting requests.", Type = SearchParamType.Token, Path = new string[] { "Appointment.participant.status", }, XPath = "f:Appointment/f:participant/f:status", Expression = "Appointment.participant.status" },
new SearchParamDefinition() { Resource = "Appointment", Name = "patient", Description = @"One of the individuals of the appointment is this patient", Type = SearchParamType.Reference, Path = new string[] { "Appointment.participant.actor", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:Appointment/f:participant/f:actor", Expression = "Appointment.participant.actor" },
new SearchParamDefinition() { Resource = "Appointment", Name = "practitioner", Description = @"One of the individuals of the appointment is this practitioner", Type = SearchParamType.Reference, Path = new string[] { "Appointment.participant.actor", }, Target = new ResourceType[] { ResourceType.Practitioner, }, XPath = "f:Appointment/f:participant/f:actor", Expression = "Appointment.participant.actor" },
new SearchParamDefinition() { Resource = "Appointment", Name = "status", Description = @"The overall status of the appointment", Type = SearchParamType.Token, Path = new string[] { "Appointment.status", }, XPath = "f:Appointment/f:status", Expression = "Appointment.status" },
new SearchParamDefinition() { Resource = "AppointmentResponse", Name = "actor", Description = @"The Person, Location/HealthcareService or Device that this appointment response replies for", Type = SearchParamType.Reference, Path = new string[] { "AppointmentResponse.actor", }, Target = new ResourceType[] { ResourceType.Device, ResourceType.HealthcareService, ResourceType.Location, ResourceType.Patient, ResourceType.Practitioner, ResourceType.RelatedPerson, }, XPath = "f:AppointmentResponse/f:actor", Expression = "AppointmentResponse.actor" },
new SearchParamDefinition() { Resource = "AppointmentResponse", Name = "appointment", Description = @"The appointment that the response is attached to", Type = SearchParamType.Reference, Path = new string[] { "AppointmentResponse.appointment", }, Target = new ResourceType[] { ResourceType.Appointment, }, XPath = "f:AppointmentResponse/f:appointment", Expression = "AppointmentResponse.appointment" },
new SearchParamDefinition() { Resource = "AppointmentResponse", Name = "identifier", Description = @"An Identifier in this appointment response", Type = SearchParamType.Token, Path = new string[] { "AppointmentResponse.identifier", }, XPath = "f:AppointmentResponse/f:identifier", Expression = "AppointmentResponse.identifier" },
new SearchParamDefinition() { Resource = "AppointmentResponse", Name = "location", Description = @"This Response is for this Location", Type = SearchParamType.Reference, Path = new string[] { "AppointmentResponse.actor", }, Target = new ResourceType[] { ResourceType.Location, }, XPath = "f:AppointmentResponse/f:actor", Expression = "AppointmentResponse.actor" },
new SearchParamDefinition() { Resource = "AppointmentResponse", Name = "part-status", Description = @"The participants acceptance status for this appointment", Type = SearchParamType.Token, Path = new string[] { "AppointmentResponse.participantStatus", }, XPath = "f:AppointmentResponse/f:participantStatus", Expression = "AppointmentResponse.participantStatus" },
new SearchParamDefinition() { Resource = "AppointmentResponse", Name = "patient", Description = @"This Response is for this Patient", Type = SearchParamType.Reference, Path = new string[] { "AppointmentResponse.actor", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:AppointmentResponse/f:actor", Expression = "AppointmentResponse.actor" },
new SearchParamDefinition() { Resource = "AppointmentResponse", Name = "practitioner", Description = @"This Response is for this Practitioner", Type = SearchParamType.Reference, Path = new string[] { "AppointmentResponse.actor", }, Target = new ResourceType[] { ResourceType.Practitioner, }, XPath = "f:AppointmentResponse/f:actor", Expression = "AppointmentResponse.actor" },
new SearchParamDefinition() { Resource = "AuditEvent", Name = "action", Description = @"Type of action performed during the event", Type = SearchParamType.Token, Path = new string[] { "AuditEvent.event.action", }, XPath = "f:AuditEvent/f:event/f:action", Expression = "AuditEvent.event.action" },
new SearchParamDefinition() { Resource = "AuditEvent", Name = "address", Description = @"Identifier for the network access point of the user device", Type = SearchParamType.Token, Path = new string[] { "AuditEvent.participant.network.address", }, XPath = "f:AuditEvent/f:participant/f:network/f:address", Expression = "AuditEvent.participant.network.address" },
new SearchParamDefinition() { Resource = "AuditEvent", Name = "altid", Description = @"Alternative User id e.g. authentication", Type = SearchParamType.Token, Path = new string[] { "AuditEvent.participant.altId", }, XPath = "f:AuditEvent/f:participant/f:altId", Expression = "AuditEvent.participant.altId" },
new SearchParamDefinition() { Resource = "AuditEvent", Name = "date", Description = @"Time when the event occurred on source", Type = SearchParamType.Date, Path = new string[] { "AuditEvent.event.dateTime", }, XPath = "f:AuditEvent/f:event/f:dateTime", Expression = "AuditEvent.event.dateTime" },
new SearchParamDefinition() { Resource = "AuditEvent", Name = "desc", Description = @"Instance-specific descriptor for Object", Type = SearchParamType.String, Path = new string[] { "AuditEvent.object.name", }, XPath = "f:AuditEvent/f:object/f:name", Expression = "AuditEvent.object.name" },
new SearchParamDefinition() { Resource = "AuditEvent", Name = "identity", Description = @"Specific instance of object (e.g. versioned)", Type = SearchParamType.Token, Path = new string[] { "AuditEvent.object.identifier", }, XPath = "f:AuditEvent/f:object/f:identifier", Expression = "AuditEvent.object.identifier" },
new SearchParamDefinition() { Resource = "AuditEvent", Name = "name", Description = @"Human-meaningful name for the user", Type = SearchParamType.String, Path = new string[] { "AuditEvent.participant.name", }, XPath = "f:AuditEvent/f:participant/f:name", Expression = "AuditEvent.participant.name" },
new SearchParamDefinition() { Resource = "AuditEvent", Name = "object-type", Description = @"Type of object involved", Type = SearchParamType.Token, Path = new string[] { "AuditEvent.object.type", }, XPath = "f:AuditEvent/f:object/f:type", Expression = "AuditEvent.object.type" },
new SearchParamDefinition() { Resource = "AuditEvent", Name = "participant", Description = @"Direct reference to resource", Type = SearchParamType.Reference, Path = new string[] { "AuditEvent.participant.reference", }, Target = new ResourceType[] { ResourceType.Device, ResourceType.Organization, ResourceType.Patient, ResourceType.Practitioner, ResourceType.RelatedPerson, }, XPath = "f:AuditEvent/f:participant/f:reference", Expression = "AuditEvent.participant.reference" },
new SearchParamDefinition() { Resource = "AuditEvent", Name = "patient", Description = @"Direct reference to resource", Type = SearchParamType.Reference, Path = new string[] { "AuditEvent.participant.reference", "AuditEvent.object.reference", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:AuditEvent/f:participant/f:reference | f:AuditEvent/f:object/f:reference", Expression = "AuditEvent.participant.reference | AuditEvent.object.reference" },
new SearchParamDefinition() { Resource = "AuditEvent", Name = "policy", Description = @"Policy that authorized event", Type = SearchParamType.Uri, Path = new string[] { "AuditEvent.participant.policy", }, XPath = "f:AuditEvent/f:participant/f:policy", Expression = "AuditEvent.participant.policy" },
new SearchParamDefinition() { Resource = "AuditEvent", Name = "reference", Description = @"Specific instance of resource (e.g. versioned)", Type = SearchParamType.Reference, Path = new string[] { "AuditEvent.object.reference", }, Target = new ResourceType[] { ResourceType.Account, ResourceType.AllergyIntolerance, ResourceType.Appointment, ResourceType.AppointmentResponse, ResourceType.AuditEvent, ResourceType.Basic, ResourceType.Binary, ResourceType.BodySite, ResourceType.Bundle, ResourceType.CarePlan, ResourceType.Claim, ResourceType.ClaimResponse, ResourceType.ClinicalImpression, ResourceType.Communication, ResourceType.CommunicationRequest, ResourceType.Composition, ResourceType.ConceptMap, ResourceType.Condition, ResourceType.Conformance, ResourceType.Contract, ResourceType.Coverage, ResourceType.DataElement, ResourceType.DetectedIssue, ResourceType.Device, ResourceType.DeviceComponent, ResourceType.DeviceMetric, ResourceType.DeviceUseRequest, ResourceType.DeviceUseStatement, ResourceType.DiagnosticOrder, ResourceType.DiagnosticReport, ResourceType.DocumentManifest, ResourceType.DocumentReference, ResourceType.EligibilityRequest, ResourceType.EligibilityResponse, ResourceType.Encounter, ResourceType.EnrollmentRequest, ResourceType.EnrollmentResponse, ResourceType.EpisodeOfCare, ResourceType.ExplanationOfBenefit, ResourceType.FamilyMemberHistory, ResourceType.Flag, ResourceType.Goal, ResourceType.Group, ResourceType.HealthcareService, ResourceType.ImagingObjectSelection, ResourceType.ImagingStudy, ResourceType.Immunization, ResourceType.ImmunizationRecommendation, ResourceType.ImplementationGuide, ResourceType.List, ResourceType.Location, ResourceType.Media, ResourceType.Medication, ResourceType.MedicationAdministration, ResourceType.MedicationDispense, ResourceType.MedicationOrder, ResourceType.MedicationStatement, ResourceType.MessageHeader, ResourceType.NamingSystem, ResourceType.NutritionOrder, ResourceType.Observation, ResourceType.OperationDefinition, ResourceType.OperationOutcome, ResourceType.Order, ResourceType.OrderResponse, ResourceType.Organization, ResourceType.Patient, ResourceType.PaymentNotice, ResourceType.PaymentReconciliation, ResourceType.Person, ResourceType.Practitioner, ResourceType.Procedure, ResourceType.ProcedureRequest, ResourceType.ProcessRequest, ResourceType.ProcessResponse, ResourceType.Provenance, ResourceType.Questionnaire, ResourceType.QuestionnaireResponse, ResourceType.ReferralRequest, ResourceType.RelatedPerson, ResourceType.RiskAssessment, ResourceType.Schedule, ResourceType.SearchParameter, ResourceType.Slot, ResourceType.Specimen, ResourceType.StructureDefinition, ResourceType.Subscription, ResourceType.Substance, ResourceType.SupplyDelivery, ResourceType.SupplyRequest, ResourceType.TestScript, ResourceType.ValueSet, ResourceType.VisionPrescription, }, XPath = "f:AuditEvent/f:object/f:reference", Expression = "AuditEvent.object.reference" },
new SearchParamDefinition() { Resource = "AuditEvent", Name = "site", Description = @"Logical source location within the enterprise", Type = SearchParamType.Token, Path = new string[] { "AuditEvent.source.site", }, XPath = "f:AuditEvent/f:source/f:site", Expression = "AuditEvent.source.site" },
new SearchParamDefinition() { Resource = "AuditEvent", Name = "source", Description = @"The identity of source detecting the event", Type = SearchParamType.Token, Path = new string[] { "AuditEvent.source.identifier", }, XPath = "f:AuditEvent/f:source/f:identifier", Expression = "AuditEvent.source.identifier" },
new SearchParamDefinition() { Resource = "AuditEvent", Name = "subtype", Description = @"More specific type/id for the event", Type = SearchParamType.Token, Path = new string[] { "AuditEvent.event.subtype", }, XPath = "f:AuditEvent/f:event/f:subtype", Expression = "AuditEvent.event.subtype" },
new SearchParamDefinition() { Resource = "AuditEvent", Name = "type", Description = @"Type/identifier of event", Type = SearchParamType.Token, Path = new string[] { "AuditEvent.event.type", }, XPath = "f:AuditEvent/f:event/f:type", Expression = "AuditEvent.event.type" },
new SearchParamDefinition() { Resource = "AuditEvent", Name = "user", Description = @"Unique identifier for the user", Type = SearchParamType.Token, Path = new string[] { "AuditEvent.participant.userId", }, XPath = "f:AuditEvent/f:participant/f:userId", Expression = "AuditEvent.participant.userId" },
new SearchParamDefinition() { Resource = "Basic", Name = "author", Description = @"Who created", Type = SearchParamType.Reference, Path = new string[] { "Basic.author", }, Target = new ResourceType[] { ResourceType.Patient, ResourceType.Practitioner, ResourceType.RelatedPerson, }, XPath = "f:Basic/f:author", Expression = "Basic.author" },
new SearchParamDefinition() { Resource = "Basic", Name = "code", Description = @"Kind of Resource", Type = SearchParamType.Token, Path = new string[] { "Basic.code", }, XPath = "f:Basic/f:code", Expression = "Basic.code" },
new SearchParamDefinition() { Resource = "Basic", Name = "created", Description = @"When created", Type = SearchParamType.Date, Path = new string[] { "Basic.created", }, XPath = "f:Basic/f:created", Expression = "Basic.created" },
new SearchParamDefinition() { Resource = "Basic", Name = "identifier", Description = @"Business identifier", Type = SearchParamType.Token, Path = new string[] { "Basic.identifier", }, XPath = "f:Basic/f:identifier", Expression = "Basic.identifier" },
new SearchParamDefinition() { Resource = "Basic", Name = "patient", Description = @"Identifies the focus of this resource", Type = SearchParamType.Reference, Path = new string[] { "Basic.subject", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:Basic/f:subject", Expression = "Basic.subject" },
new SearchParamDefinition() { Resource = "Basic", Name = "subject", Description = @"Identifies the focus of this resource", Type = SearchParamType.Reference, Path = new string[] { "Basic.subject", }, Target = new ResourceType[] { ResourceType.Account, ResourceType.AllergyIntolerance, ResourceType.Appointment, ResourceType.AppointmentResponse, ResourceType.AuditEvent, ResourceType.Basic, ResourceType.Binary, ResourceType.BodySite, ResourceType.Bundle, ResourceType.CarePlan, ResourceType.Claim, ResourceType.ClaimResponse, ResourceType.ClinicalImpression, ResourceType.Communication, ResourceType.CommunicationRequest, ResourceType.Composition, ResourceType.ConceptMap, ResourceType.Condition, ResourceType.Conformance, ResourceType.Contract, ResourceType.Coverage, ResourceType.DataElement, ResourceType.DetectedIssue, ResourceType.Device, ResourceType.DeviceComponent, ResourceType.DeviceMetric, ResourceType.DeviceUseRequest, ResourceType.DeviceUseStatement, ResourceType.DiagnosticOrder, ResourceType.DiagnosticReport, ResourceType.DocumentManifest, ResourceType.DocumentReference, ResourceType.EligibilityRequest, ResourceType.EligibilityResponse, ResourceType.Encounter, ResourceType.EnrollmentRequest, ResourceType.EnrollmentResponse, ResourceType.EpisodeOfCare, ResourceType.ExplanationOfBenefit, ResourceType.FamilyMemberHistory, ResourceType.Flag, ResourceType.Goal, ResourceType.Group, ResourceType.HealthcareService, ResourceType.ImagingObjectSelection, ResourceType.ImagingStudy, ResourceType.Immunization, ResourceType.ImmunizationRecommendation, ResourceType.ImplementationGuide, ResourceType.List, ResourceType.Location, ResourceType.Media, ResourceType.Medication, ResourceType.MedicationAdministration, ResourceType.MedicationDispense, ResourceType.MedicationOrder, ResourceType.MedicationStatement, ResourceType.MessageHeader, ResourceType.NamingSystem, ResourceType.NutritionOrder, ResourceType.Observation, ResourceType.OperationDefinition, ResourceType.OperationOutcome, ResourceType.Order, ResourceType.OrderResponse, ResourceType.Organization, ResourceType.Patient, ResourceType.PaymentNotice, ResourceType.PaymentReconciliation, ResourceType.Person, ResourceType.Practitioner, ResourceType.Procedure, ResourceType.ProcedureRequest, ResourceType.ProcessRequest, ResourceType.ProcessResponse, ResourceType.Provenance, ResourceType.Questionnaire, ResourceType.QuestionnaireResponse, ResourceType.ReferralRequest, ResourceType.RelatedPerson, ResourceType.RiskAssessment, ResourceType.Schedule, ResourceType.SearchParameter, ResourceType.Slot, ResourceType.Specimen, ResourceType.StructureDefinition, ResourceType.Subscription, ResourceType.Substance, ResourceType.SupplyDelivery, ResourceType.SupplyRequest, ResourceType.TestScript, ResourceType.ValueSet, ResourceType.VisionPrescription, }, XPath = "f:Basic/f:subject", Expression = "Basic.subject" },
new SearchParamDefinition() { Resource = "Basic", Name = "description", Description = @"Text search against the description", Type = SearchParamType.String, Path = new string[] { } },
new SearchParamDefinition() { Resource = "Basic", Name = "identifier", Description = @"Logical identifier for the module (e.g. CMS-143)", Type = SearchParamType.Token, Path = new string[] { } },
new SearchParamDefinition() { Resource = "Basic", Name = "keyword", Description = @"Keywords associated with the module", Type = SearchParamType.String, Path = new string[] { } },
new SearchParamDefinition() { Resource = "Basic", Name = "minScore", Description = @"The minimum relevance score of any match that will be returned", Type = SearchParamType.Number, Path = new string[] { } },
new SearchParamDefinition() { Resource = "Basic", Name = "status", Description = @"Status of the module", Type = SearchParamType.Token, Path = new string[] { } },
new SearchParamDefinition() { Resource = "Basic", Name = "title", Description = @"Text search against the title", Type = SearchParamType.String, Path = new string[] { } },
new SearchParamDefinition() { Resource = "Basic", Name = "topic", Description = @"Topics associated with the module", Type = SearchParamType.Token, Path = new string[] { } },
new SearchParamDefinition() { Resource = "Basic", Name = "version", Description = @"Version of the module (e.g. 1.0.0)", Type = SearchParamType.String, Path = new string[] { } },
new SearchParamDefinition() { Resource = "Binary", Name = "contenttype", Description = @"MimeType of the binary content", Type = SearchParamType.Token, Path = new string[] { "Binary.contentType", }, XPath = "f:Binary/f:contentType", Expression = "Binary.contentType" },
new SearchParamDefinition() { Resource = "BodySite", Name = "code", Description = @"Named anatomical location", Type = SearchParamType.Token, Path = new string[] { "BodySite.code", }, XPath = "f:BodySite/f:code", Expression = "BodySite.code" },
new SearchParamDefinition() { Resource = "BodySite", Name = "identifier", Description = @"Identifier for this instance of the anatomical location", Type = SearchParamType.Token, Path = new string[] { "BodySite.identifier", }, XPath = "f:BodySite/f:identifier", Expression = "BodySite.identifier" },
new SearchParamDefinition() { Resource = "BodySite", Name = "patient", Description = @"Patient to whom bodysite belongs", Type = SearchParamType.Reference, Path = new string[] { "BodySite.patient", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:BodySite/f:patient", Expression = "BodySite.patient" },
new SearchParamDefinition() { Resource = "Bundle", Name = "composition", Description = @"The first resource in the bundle, if the bundle type is ""document"" - this is a composition, and this parameter provides access to searches its contents", Type = SearchParamType.Reference, Path = new string[] { "Bundle.entry.resource[0]", }, Target = new ResourceType[] { ResourceType.Composition, }, XPath = "f:Bundle/f:entry/f:resource[0]", Expression = "Bundle.entry.resource[0]" },
new SearchParamDefinition() { Resource = "Bundle", Name = "message", Description = @"The first resource in the bundle, if the bundle type is ""message"" - this is a message header, and this parameter provides access to search its contents", Type = SearchParamType.Reference, Path = new string[] { "Bundle.entry.resource[0]", }, Target = new ResourceType[] { ResourceType.MessageHeader, }, XPath = "f:Bundle/f:entry/f:resource[0]", Expression = "Bundle.entry.resource[0]" },
new SearchParamDefinition() { Resource = "Bundle", Name = "type", Description = @"document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection", Type = SearchParamType.Token, Path = new string[] { "Bundle.type", }, XPath = "f:Bundle/f:type", Expression = "Bundle.type" },
new SearchParamDefinition() { Resource = "CarePlan", Name = "activitycode", Description = @"Detail type of activity", Type = SearchParamType.Token, Path = new string[] { "CarePlan.activity.detail.code", }, XPath = "f:CarePlan/f:activity/f:detail/f:code", Expression = "CarePlan.activity.detail.code" },
new SearchParamDefinition() { Resource = "CarePlan", Name = "activitydate", Description = @"Specified date occurs within period specified by CarePlan.activity.timingSchedule", Type = SearchParamType.Date, Path = new string[] { "CarePlan.activity.detail.scheduledTiming", "CarePlan.activity.detail.scheduledPeriod", "CarePlan.activity.detail.scheduledString", }, XPath = "f:CarePlan/f:activity/f:detail/f:scheduledTiming | f:CarePlan/f:activity/f:detail/f:scheduledPeriod | f:CarePlan/f:activity/f:detail/f:scheduledString", Expression = "CarePlan.activity.detail.scheduled[x]" },
new SearchParamDefinition() { Resource = "CarePlan", Name = "activityreference", Description = @"Activity details defined in specific resource", Type = SearchParamType.Reference, Path = new string[] { "CarePlan.activity.reference", }, Target = new ResourceType[] { ResourceType.Appointment, ResourceType.CommunicationRequest, ResourceType.DeviceUseRequest, ResourceType.DiagnosticOrder, ResourceType.MedicationOrder, ResourceType.NutritionOrder, ResourceType.Order, ResourceType.ProcedureRequest, ResourceType.ProcessRequest, ResourceType.ReferralRequest, ResourceType.SupplyRequest, ResourceType.VisionPrescription, }, XPath = "f:CarePlan/f:activity/f:reference", Expression = "CarePlan.activity.reference" },
new SearchParamDefinition() { Resource = "CarePlan", Name = "condition", Description = @"Health issues this plan addresses", Type = SearchParamType.Reference, Path = new string[] { "CarePlan.addresses", }, Target = new ResourceType[] { ResourceType.Condition, }, XPath = "f:CarePlan/f:addresses", Expression = "CarePlan.addresses" },
new SearchParamDefinition() { Resource = "CarePlan", Name = "date", Description = @"Time period plan covers", Type = SearchParamType.Date, Path = new string[] { "CarePlan.period", }, XPath = "f:CarePlan/f:period", Expression = "CarePlan.period" },
new SearchParamDefinition() { Resource = "CarePlan", Name = "goal", Description = @"Desired outcome of plan", Type = SearchParamType.Reference, Path = new string[] { "CarePlan.goal", }, Target = new ResourceType[] { ResourceType.Goal, }, XPath = "f:CarePlan/f:goal", Expression = "CarePlan.goal" },
new SearchParamDefinition() { Resource = "CarePlan", Name = "participant", Description = @"Who is involved", Type = SearchParamType.Reference, Path = new string[] { "CarePlan.participant.member", }, Target = new ResourceType[] { ResourceType.Organization, ResourceType.Patient, ResourceType.Practitioner, ResourceType.RelatedPerson, }, XPath = "f:CarePlan/f:participant/f:member", Expression = "CarePlan.participant.member" },
new SearchParamDefinition() { Resource = "CarePlan", Name = "patient", Description = @"Who care plan is for", Type = SearchParamType.Reference, Path = new string[] { "CarePlan.subject", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:CarePlan/f:subject", Expression = "CarePlan.subject" },
new SearchParamDefinition() { Resource = "CarePlan", Name = "performer", Description = @"Matches if the practitioner is listed as a performer in any of the ""simple"" activities. (For performers of the detailed activities, chain through the activitydetail search parameter.)", Type = SearchParamType.Reference, Path = new string[] { "CarePlan.activity.detail.performer", }, Target = new ResourceType[] { ResourceType.Organization, ResourceType.Patient, ResourceType.Practitioner, ResourceType.RelatedPerson, }, XPath = "f:CarePlan/f:activity/f:detail/f:performer", Expression = "CarePlan.activity.detail.performer" },
new SearchParamDefinition() { Resource = "CarePlan", Name = "related", Description = @"A combination of the type of relationship and the related plan", Type = SearchParamType.Composite, Path = new string[] { } },
new SearchParamDefinition() { Resource = "CarePlan", Name = "relatedcode", Description = @"includes | replaces | fulfills", Type = SearchParamType.Token, Path = new string[] { "CarePlan.relatedPlan.code", }, XPath = "f:CarePlan/f:relatedPlan/f:code", Expression = "CarePlan.relatedPlan.code" },
new SearchParamDefinition() { Resource = "CarePlan", Name = "relatedplan", Description = @"Plan relationship exists with", Type = SearchParamType.Reference, Path = new string[] { "CarePlan.relatedPlan.plan", }, Target = new ResourceType[] { ResourceType.CarePlan, }, XPath = "f:CarePlan/f:relatedPlan/f:plan", Expression = "CarePlan.relatedPlan.plan" },
new SearchParamDefinition() { Resource = "CarePlan", Name = "subject", Description = @"Who care plan is for", Type = SearchParamType.Reference, Path = new string[] { "CarePlan.subject", }, Target = new ResourceType[] { ResourceType.Group, ResourceType.Patient, }, XPath = "f:CarePlan/f:subject", Expression = "CarePlan.subject" },
new SearchParamDefinition() { Resource = "Claim", Name = "identifier", Description = @"The primary identifier of the financial resource", Type = SearchParamType.Token, Path = new string[] { "Claim.identifier", }, XPath = "f:Claim/f:identifier", Expression = "Claim.identifier" },
new SearchParamDefinition() { Resource = "Claim", Name = "patient", Description = @"Patient", Type = SearchParamType.Reference, Path = new string[] { "Claim.patient", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:Claim/f:patient", Expression = "Claim.patient" },
new SearchParamDefinition() { Resource = "Claim", Name = "priority", Description = @"Processing priority requested", Type = SearchParamType.Token, Path = new string[] { "Claim.priority", }, XPath = "f:Claim/f:priority", Expression = "Claim.priority" },
new SearchParamDefinition() { Resource = "Claim", Name = "provider", Description = @"Provider responsible for the claim", Type = SearchParamType.Reference, Path = new string[] { "Claim.provider", }, Target = new ResourceType[] { ResourceType.Practitioner, }, XPath = "f:Claim/f:provider", Expression = "Claim.provider" },
new SearchParamDefinition() { Resource = "Claim", Name = "use", Description = @"The kind of financial resource", Type = SearchParamType.Token, Path = new string[] { "Claim.use", }, XPath = "f:Claim/f:use", Expression = "Claim.use" },
new SearchParamDefinition() { Resource = "ClaimResponse", Name = "identifier", Description = @"The identity of the insurer", Type = SearchParamType.Token, Path = new string[] { "ClaimResponse.identifier", }, XPath = "f:ClaimResponse/f:identifier", Expression = "ClaimResponse.identifier" },
new SearchParamDefinition() { Resource = "ClinicalImpression", Name = "action", Description = @"Actions taken during assessment", Type = SearchParamType.Reference, Path = new string[] { "ClinicalImpression.action", }, Target = new ResourceType[] { ResourceType.Appointment, ResourceType.DiagnosticOrder, ResourceType.MedicationOrder, ResourceType.NutritionOrder, ResourceType.Procedure, ResourceType.ProcedureRequest, ResourceType.ReferralRequest, ResourceType.SupplyRequest, }, XPath = "f:ClinicalImpression/f:action", Expression = "ClinicalImpression.action" },
new SearchParamDefinition() { Resource = "ClinicalImpression", Name = "assessor", Description = @"The clinician performing the assessment", Type = SearchParamType.Reference, Path = new string[] { "ClinicalImpression.assessor", }, Target = new ResourceType[] { ResourceType.Practitioner, }, XPath = "f:ClinicalImpression/f:assessor", Expression = "ClinicalImpression.assessor" },
new SearchParamDefinition() { Resource = "ClinicalImpression", Name = "date", Description = @"When the assessment occurred", Type = SearchParamType.Date, Path = new string[] { "ClinicalImpression.date", }, XPath = "f:ClinicalImpression/f:date", Expression = "ClinicalImpression.date" },
new SearchParamDefinition() { Resource = "ClinicalImpression", Name = "finding", Description = @"Specific text or code for finding", Type = SearchParamType.Token, Path = new string[] { "ClinicalImpression.finding.item", }, XPath = "f:ClinicalImpression/f:finding/f:item", Expression = "ClinicalImpression.finding.item" },
new SearchParamDefinition() { Resource = "ClinicalImpression", Name = "investigation", Description = @"Record of a specific investigation", Type = SearchParamType.Reference, Path = new string[] { "ClinicalImpression.investigations.item", }, Target = new ResourceType[] { ResourceType.DiagnosticReport, ResourceType.FamilyMemberHistory, ResourceType.Observation, ResourceType.QuestionnaireResponse, }, XPath = "f:ClinicalImpression/f:investigations/f:item", Expression = "ClinicalImpression.investigations.item" },
new SearchParamDefinition() { Resource = "ClinicalImpression", Name = "patient", Description = @"The patient being assessed", Type = SearchParamType.Reference, Path = new string[] { "ClinicalImpression.patient", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:ClinicalImpression/f:patient", Expression = "ClinicalImpression.patient" },
new SearchParamDefinition() { Resource = "ClinicalImpression", Name = "plan", Description = @"Plan of action after assessment", Type = SearchParamType.Reference, Path = new string[] { "ClinicalImpression.plan", }, Target = new ResourceType[] { ResourceType.Appointment, ResourceType.CarePlan, ResourceType.CommunicationRequest, ResourceType.DeviceUseRequest, ResourceType.DiagnosticOrder, ResourceType.MedicationOrder, ResourceType.NutritionOrder, ResourceType.Order, ResourceType.ProcedureRequest, ResourceType.ProcessRequest, ResourceType.ReferralRequest, ResourceType.SupplyRequest, ResourceType.VisionPrescription, }, XPath = "f:ClinicalImpression/f:plan", Expression = "ClinicalImpression.plan" },
new SearchParamDefinition() { Resource = "ClinicalImpression", Name = "previous", Description = @"Reference to last assessment", Type = SearchParamType.Reference, Path = new string[] { "ClinicalImpression.previous", }, Target = new ResourceType[] { ResourceType.ClinicalImpression, }, XPath = "f:ClinicalImpression/f:previous", Expression = "ClinicalImpression.previous" },
new SearchParamDefinition() { Resource = "ClinicalImpression", Name = "problem", Description = @"General assessment of patient state", Type = SearchParamType.Reference, Path = new string[] { "ClinicalImpression.problem", }, Target = new ResourceType[] { ResourceType.AllergyIntolerance, ResourceType.Condition, }, XPath = "f:ClinicalImpression/f:problem", Expression = "ClinicalImpression.problem" },
new SearchParamDefinition() { Resource = "ClinicalImpression", Name = "resolved", Description = @"Diagnoses/conditions resolved since previous assessment", Type = SearchParamType.Token, Path = new string[] { "ClinicalImpression.resolved", }, XPath = "f:ClinicalImpression/f:resolved", Expression = "ClinicalImpression.resolved" },
new SearchParamDefinition() { Resource = "ClinicalImpression", Name = "ruledout", Description = @"Specific text of code for diagnosis", Type = SearchParamType.Token, Path = new string[] { "ClinicalImpression.ruledOut.item", }, XPath = "f:ClinicalImpression/f:ruledOut/f:item", Expression = "ClinicalImpression.ruledOut.item" },
new SearchParamDefinition() { Resource = "ClinicalImpression", Name = "status", Description = @"in-progress | completed | entered-in-error", Type = SearchParamType.Token, Path = new string[] { "ClinicalImpression.status", }, XPath = "f:ClinicalImpression/f:status", Expression = "ClinicalImpression.status" },
new SearchParamDefinition() { Resource = "ClinicalImpression", Name = "trigger", Description = @"Request or event that necessitated this assessment", Type = SearchParamType.Reference, Path = new string[] { "ClinicalImpression.triggerReference", }, Target = new ResourceType[] { ResourceType.Account, ResourceType.AllergyIntolerance, ResourceType.Appointment, ResourceType.AppointmentResponse, ResourceType.AuditEvent, ResourceType.Basic, ResourceType.Binary, ResourceType.BodySite, ResourceType.Bundle, ResourceType.CarePlan, ResourceType.Claim, ResourceType.ClaimResponse, ResourceType.ClinicalImpression, ResourceType.Communication, ResourceType.CommunicationRequest, ResourceType.Composition, ResourceType.ConceptMap, ResourceType.Condition, ResourceType.Conformance, ResourceType.Contract, ResourceType.Coverage, ResourceType.DataElement, ResourceType.DetectedIssue, ResourceType.Device, ResourceType.DeviceComponent, ResourceType.DeviceMetric, ResourceType.DeviceUseRequest, ResourceType.DeviceUseStatement, ResourceType.DiagnosticOrder, ResourceType.DiagnosticReport, ResourceType.DocumentManifest, ResourceType.DocumentReference, ResourceType.EligibilityRequest, ResourceType.EligibilityResponse, ResourceType.Encounter, ResourceType.EnrollmentRequest, ResourceType.EnrollmentResponse, ResourceType.EpisodeOfCare, ResourceType.ExplanationOfBenefit, ResourceType.FamilyMemberHistory, ResourceType.Flag, ResourceType.Goal, ResourceType.Group, ResourceType.HealthcareService, ResourceType.ImagingObjectSelection, ResourceType.ImagingStudy, ResourceType.Immunization, ResourceType.ImmunizationRecommendation, ResourceType.ImplementationGuide, ResourceType.List, ResourceType.Location, ResourceType.Media, ResourceType.Medication, ResourceType.MedicationAdministration, ResourceType.MedicationDispense, ResourceType.MedicationOrder, ResourceType.MedicationStatement, ResourceType.MessageHeader, ResourceType.NamingSystem, ResourceType.NutritionOrder, ResourceType.Observation, ResourceType.OperationDefinition, ResourceType.OperationOutcome, ResourceType.Order, ResourceType.OrderResponse, ResourceType.Organization, ResourceType.Patient, ResourceType.PaymentNotice, ResourceType.PaymentReconciliation, ResourceType.Person, ResourceType.Practitioner, ResourceType.Procedure, ResourceType.ProcedureRequest, ResourceType.ProcessRequest, ResourceType.ProcessResponse, ResourceType.Provenance, ResourceType.Questionnaire, ResourceType.QuestionnaireResponse, ResourceType.ReferralRequest, ResourceType.RelatedPerson, ResourceType.RiskAssessment, ResourceType.Schedule, ResourceType.SearchParameter, ResourceType.Slot, ResourceType.Specimen, ResourceType.StructureDefinition, ResourceType.Subscription, ResourceType.Substance, ResourceType.SupplyDelivery, ResourceType.SupplyRequest, ResourceType.TestScript, ResourceType.ValueSet, ResourceType.VisionPrescription, }, XPath = "f:ClinicalImpression/f:triggerReference", Expression = "ClinicalImpression.triggerReference" },
new SearchParamDefinition() { Resource = "ClinicalImpression", Name = "trigger-code", Description = @"Request or event that necessitated this assessment", Type = SearchParamType.Token, Path = new string[] { "ClinicalImpression.triggerCodeableConcept", }, XPath = "f:ClinicalImpression/f:triggerCodeableConcept", Expression = "ClinicalImpression.triggerCodeableConcept" },
new SearchParamDefinition() { Resource = "Communication", Name = "category", Description = @"Message category", Type = SearchParamType.Token, Path = new string[] { "Communication.category", }, XPath = "f:Communication/f:category", Expression = "Communication.category" },
new SearchParamDefinition() { Resource = "Communication", Name = "encounter", Description = @"Encounter leading to message", Type = SearchParamType.Reference, Path = new string[] { "Communication.encounter", }, Target = new ResourceType[] { ResourceType.Encounter, }, XPath = "f:Communication/f:encounter", Expression = "Communication.encounter" },
new SearchParamDefinition() { Resource = "Communication", Name = "identifier", Description = @"Unique identifier", Type = SearchParamType.Token, Path = new string[] { "Communication.identifier", }, XPath = "f:Communication/f:identifier", Expression = "Communication.identifier" },
new SearchParamDefinition() { Resource = "Communication", Name = "medium", Description = @"A channel of communication", Type = SearchParamType.Token, Path = new string[] { "Communication.medium", }, XPath = "f:Communication/f:medium", Expression = "Communication.medium" },
new SearchParamDefinition() { Resource = "Communication", Name = "patient", Description = @"Focus of message", Type = SearchParamType.Reference, Path = new string[] { "Communication.subject", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:Communication/f:subject", Expression = "Communication.subject" },
new SearchParamDefinition() { Resource = "Communication", Name = "received", Description = @"When received", Type = SearchParamType.Date, Path = new string[] { "Communication.received", }, XPath = "f:Communication/f:received", Expression = "Communication.received" },
new SearchParamDefinition() { Resource = "Communication", Name = "recipient", Description = @"Message recipient", Type = SearchParamType.Reference, Path = new string[] { "Communication.recipient", }, Target = new ResourceType[] { ResourceType.Device, ResourceType.Group, ResourceType.Organization, ResourceType.Patient, ResourceType.Practitioner, ResourceType.RelatedPerson, }, XPath = "f:Communication/f:recipient", Expression = "Communication.recipient" },
new SearchParamDefinition() { Resource = "Communication", Name = "request", Description = @"CommunicationRequest producing this message", Type = SearchParamType.Reference, Path = new string[] { "Communication.requestDetail", }, Target = new ResourceType[] { ResourceType.CommunicationRequest, }, XPath = "f:Communication/f:requestDetail", Expression = "Communication.requestDetail" },
new SearchParamDefinition() { Resource = "Communication", Name = "sender", Description = @"Message sender", Type = SearchParamType.Reference, Path = new string[] { "Communication.sender", }, Target = new ResourceType[] { ResourceType.Device, ResourceType.Organization, ResourceType.Patient, ResourceType.Practitioner, ResourceType.RelatedPerson, }, XPath = "f:Communication/f:sender", Expression = "Communication.sender" },
new SearchParamDefinition() { Resource = "Communication", Name = "sent", Description = @"When sent", Type = SearchParamType.Date, Path = new string[] { "Communication.sent", }, XPath = "f:Communication/f:sent", Expression = "Communication.sent" },
new SearchParamDefinition() { Resource = "Communication", Name = "status", Description = @"in-progress | completed | suspended | rejected | failed", Type = SearchParamType.Token, Path = new string[] { "Communication.status", }, XPath = "f:Communication/f:status", Expression = "Communication.status" },
new SearchParamDefinition() { Resource = "Communication", Name = "subject", Description = @"Focus of message", Type = SearchParamType.Reference, Path = new string[] { "Communication.subject", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:Communication/f:subject", Expression = "Communication.subject" },
new SearchParamDefinition() { Resource = "CommunicationRequest", Name = "category", Description = @"Message category", Type = SearchParamType.Token, Path = new string[] { "CommunicationRequest.category", }, XPath = "f:CommunicationRequest/f:category", Expression = "CommunicationRequest.category" },
new SearchParamDefinition() { Resource = "CommunicationRequest", Name = "encounter", Description = @"Encounter leading to message", Type = SearchParamType.Reference, Path = new string[] { "CommunicationRequest.encounter", }, Target = new ResourceType[] { ResourceType.Encounter, }, XPath = "f:CommunicationRequest/f:encounter", Expression = "CommunicationRequest.encounter" },
new SearchParamDefinition() { Resource = "CommunicationRequest", Name = "identifier", Description = @"Unique identifier", Type = SearchParamType.Token, Path = new string[] { "CommunicationRequest.identifier", }, XPath = "f:CommunicationRequest/f:identifier", Expression = "CommunicationRequest.identifier" },
new SearchParamDefinition() { Resource = "CommunicationRequest", Name = "medium", Description = @"A channel of communication", Type = SearchParamType.Token, Path = new string[] { "CommunicationRequest.medium", }, XPath = "f:CommunicationRequest/f:medium", Expression = "CommunicationRequest.medium" },
new SearchParamDefinition() { Resource = "CommunicationRequest", Name = "patient", Description = @"Focus of message", Type = SearchParamType.Reference, Path = new string[] { "CommunicationRequest.subject", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:CommunicationRequest/f:subject", Expression = "CommunicationRequest.subject" },
new SearchParamDefinition() { Resource = "CommunicationRequest", Name = "priority", Description = @"Message urgency", Type = SearchParamType.Token, Path = new string[] { "CommunicationRequest.priority", }, XPath = "f:CommunicationRequest/f:priority", Expression = "CommunicationRequest.priority" },
new SearchParamDefinition() { Resource = "CommunicationRequest", Name = "recipient", Description = @"Message recipient", Type = SearchParamType.Reference, Path = new string[] { "CommunicationRequest.recipient", }, Target = new ResourceType[] { ResourceType.Device, ResourceType.Organization, ResourceType.Patient, ResourceType.Practitioner, ResourceType.RelatedPerson, }, XPath = "f:CommunicationRequest/f:recipient", Expression = "CommunicationRequest.recipient" },
new SearchParamDefinition() { Resource = "CommunicationRequest", Name = "requested", Description = @"When ordered or proposed", Type = SearchParamType.Date, Path = new string[] { "CommunicationRequest.requestedOn", }, XPath = "f:CommunicationRequest/f:requestedOn", Expression = "CommunicationRequest.requestedOn" },
new SearchParamDefinition() { Resource = "CommunicationRequest", Name = "requester", Description = @"An individual who requested a communication", Type = SearchParamType.Reference, Path = new string[] { "CommunicationRequest.requester", }, Target = new ResourceType[] { ResourceType.Patient, ResourceType.Practitioner, ResourceType.RelatedPerson, }, XPath = "f:CommunicationRequest/f:requester", Expression = "CommunicationRequest.requester" },
new SearchParamDefinition() { Resource = "CommunicationRequest", Name = "sender", Description = @"Message sender", Type = SearchParamType.Reference, Path = new string[] { "CommunicationRequest.sender", }, Target = new ResourceType[] { ResourceType.Device, ResourceType.Organization, ResourceType.Patient, ResourceType.Practitioner, ResourceType.RelatedPerson, }, XPath = "f:CommunicationRequest/f:sender", Expression = "CommunicationRequest.sender" },
new SearchParamDefinition() { Resource = "CommunicationRequest", Name = "status", Description = @"proposed | planned | requested | received | accepted | in-progress | completed | suspended | rejected | failed", Type = SearchParamType.Token, Path = new string[] { "CommunicationRequest.status", }, XPath = "f:CommunicationRequest/f:status", Expression = "CommunicationRequest.status" },
new SearchParamDefinition() { Resource = "CommunicationRequest", Name = "subject", Description = @"Focus of message", Type = SearchParamType.Reference, Path = new string[] { "CommunicationRequest.subject", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:CommunicationRequest/f:subject", Expression = "CommunicationRequest.subject" },
new SearchParamDefinition() { Resource = "CommunicationRequest", Name = "time", Description = @"When scheduled", Type = SearchParamType.Date, Path = new string[] { "CommunicationRequest.scheduledDateTime", }, XPath = "f:CommunicationRequest/f:scheduledDateTime", Expression = "CommunicationRequest.scheduledDateTime" },
new SearchParamDefinition() { Resource = "Composition", Name = "attester", Description = @"Who attested the composition", Type = SearchParamType.Reference, Path = new string[] { "Composition.attester.party", }, Target = new ResourceType[] { ResourceType.Organization, ResourceType.Patient, ResourceType.Practitioner, }, XPath = "f:Composition/f:attester/f:party", Expression = "Composition.attester.party" },
new SearchParamDefinition() { Resource = "Composition", Name = "author", Description = @"Who and/or what authored the composition", Type = SearchParamType.Reference, Path = new string[] { "Composition.author", }, Target = new ResourceType[] { ResourceType.Device, ResourceType.Patient, ResourceType.Practitioner, ResourceType.RelatedPerson, }, XPath = "f:Composition/f:author", Expression = "Composition.author" },
new SearchParamDefinition() { Resource = "Composition", Name = "class", Description = @"Categorization of Composition", Type = SearchParamType.Token, Path = new string[] { "Composition.class", }, XPath = "f:Composition/f:class", Expression = "Composition.class" },
new SearchParamDefinition() { Resource = "Composition", Name = "confidentiality", Description = @"As defined by affinity domain", Type = SearchParamType.Token, Path = new string[] { "Composition.confidentiality", }, XPath = "f:Composition/f:confidentiality", Expression = "Composition.confidentiality" },
new SearchParamDefinition() { Resource = "Composition", Name = "context", Description = @"Code(s) that apply to the event being documented", Type = SearchParamType.Token, Path = new string[] { "Composition.event.code", }, XPath = "f:Composition/f:event/f:code", Expression = "Composition.event.code" },
new SearchParamDefinition() { Resource = "Composition", Name = "date", Description = @"Composition editing time", Type = SearchParamType.Date, Path = new string[] { "Composition.date", }, XPath = "f:Composition/f:date", Expression = "Composition.date" },
new SearchParamDefinition() { Resource = "Composition", Name = "encounter", Description = @"Context of the Composition", Type = SearchParamType.Reference, Path = new string[] { "Composition.encounter", }, Target = new ResourceType[] { ResourceType.Encounter, }, XPath = "f:Composition/f:encounter", Expression = "Composition.encounter" },
new SearchParamDefinition() { Resource = "Composition", Name = "entry", Description = @"A reference to data that supports this section", Type = SearchParamType.Reference, Path = new string[] { "Composition.section.entry", }, Target = new ResourceType[] { ResourceType.Account, ResourceType.AllergyIntolerance, ResourceType.Appointment, ResourceType.AppointmentResponse, ResourceType.AuditEvent, ResourceType.Basic, ResourceType.Binary, ResourceType.BodySite, ResourceType.Bundle, ResourceType.CarePlan, ResourceType.Claim, ResourceType.ClaimResponse, ResourceType.ClinicalImpression, ResourceType.Communication, ResourceType.CommunicationRequest, ResourceType.Composition, ResourceType.ConceptMap, ResourceType.Condition, ResourceType.Conformance, ResourceType.Contract, ResourceType.Coverage, ResourceType.DataElement, ResourceType.DetectedIssue, ResourceType.Device, ResourceType.DeviceComponent, ResourceType.DeviceMetric, ResourceType.DeviceUseRequest, ResourceType.DeviceUseStatement, ResourceType.DiagnosticOrder, ResourceType.DiagnosticReport, ResourceType.DocumentManifest, ResourceType.DocumentReference, ResourceType.EligibilityRequest, ResourceType.EligibilityResponse, ResourceType.Encounter, ResourceType.EnrollmentRequest, ResourceType.EnrollmentResponse, ResourceType.EpisodeOfCare, ResourceType.ExplanationOfBenefit, ResourceType.FamilyMemberHistory, ResourceType.Flag, ResourceType.Goal, ResourceType.Group, ResourceType.HealthcareService, ResourceType.ImagingObjectSelection, ResourceType.ImagingStudy, ResourceType.Immunization, ResourceType.ImmunizationRecommendation, ResourceType.ImplementationGuide, ResourceType.List, ResourceType.Location, ResourceType.Media, ResourceType.Medication, ResourceType.MedicationAdministration, ResourceType.MedicationDispense, ResourceType.MedicationOrder, ResourceType.MedicationStatement, ResourceType.MessageHeader, ResourceType.NamingSystem, ResourceType.NutritionOrder, ResourceType.Observation, ResourceType.OperationDefinition, ResourceType.OperationOutcome, ResourceType.Order, ResourceType.OrderResponse, ResourceType.Organization, ResourceType.Patient, ResourceType.PaymentNotice, ResourceType.PaymentReconciliation, ResourceType.Person, ResourceType.Practitioner, ResourceType.Procedure, ResourceType.ProcedureRequest, ResourceType.ProcessRequest, ResourceType.ProcessResponse, ResourceType.Provenance, ResourceType.Questionnaire, ResourceType.QuestionnaireResponse, ResourceType.ReferralRequest, ResourceType.RelatedPerson, ResourceType.RiskAssessment, ResourceType.Schedule, ResourceType.SearchParameter, ResourceType.Slot, ResourceType.Specimen, ResourceType.StructureDefinition, ResourceType.Subscription, ResourceType.Substance, ResourceType.SupplyDelivery, ResourceType.SupplyRequest, ResourceType.TestScript, ResourceType.ValueSet, ResourceType.VisionPrescription, }, XPath = "f:Composition/f:section/f:entry", Expression = "Composition.section.entry" },
new SearchParamDefinition() { Resource = "Composition", Name = "identifier", Description = @"Logical identifier of composition (version-independent)", Type = SearchParamType.Token, Path = new string[] { "Composition.identifier", }, XPath = "f:Composition/f:identifier", Expression = "Composition.identifier" },
new SearchParamDefinition() { Resource = "Composition", Name = "patient", Description = @"Who and/or what the composition is about", Type = SearchParamType.Reference, Path = new string[] { "Composition.subject", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:Composition/f:subject", Expression = "Composition.subject" },
new SearchParamDefinition() { Resource = "Composition", Name = "period", Description = @"The period covered by the documentation", Type = SearchParamType.Date, Path = new string[] { "Composition.event.period", }, XPath = "f:Composition/f:event/f:period", Expression = "Composition.event.period" },
new SearchParamDefinition() { Resource = "Composition", Name = "section", Description = @"Classification of section (recommended)", Type = SearchParamType.Token, Path = new string[] { "Composition.section.code", }, XPath = "f:Composition/f:section/f:code", Expression = "Composition.section.code" },
new SearchParamDefinition() { Resource = "Composition", Name = "status", Description = @"preliminary | final | amended | entered-in-error", Type = SearchParamType.Token, Path = new string[] { "Composition.status", }, XPath = "f:Composition/f:status", Expression = "Composition.status" },
new SearchParamDefinition() { Resource = "Composition", Name = "subject", Description = @"Who and/or what the composition is about", Type = SearchParamType.Reference, Path = new string[] { "Composition.subject", }, Target = new ResourceType[] { ResourceType.Account, ResourceType.AllergyIntolerance, ResourceType.Appointment, ResourceType.AppointmentResponse, ResourceType.AuditEvent, ResourceType.Basic, ResourceType.Binary, ResourceType.BodySite, ResourceType.Bundle, ResourceType.CarePlan, ResourceType.Claim, ResourceType.ClaimResponse, ResourceType.ClinicalImpression, ResourceType.Communication, ResourceType.CommunicationRequest, ResourceType.Composition, ResourceType.ConceptMap, ResourceType.Condition, ResourceType.Conformance, ResourceType.Contract, ResourceType.Coverage, ResourceType.DataElement, ResourceType.DetectedIssue, ResourceType.Device, ResourceType.DeviceComponent, ResourceType.DeviceMetric, ResourceType.DeviceUseRequest, ResourceType.DeviceUseStatement, ResourceType.DiagnosticOrder, ResourceType.DiagnosticReport, ResourceType.DocumentManifest, ResourceType.DocumentReference, ResourceType.EligibilityRequest, ResourceType.EligibilityResponse, ResourceType.Encounter, ResourceType.EnrollmentRequest, ResourceType.EnrollmentResponse, ResourceType.EpisodeOfCare, ResourceType.ExplanationOfBenefit, ResourceType.FamilyMemberHistory, ResourceType.Flag, ResourceType.Goal, ResourceType.Group, ResourceType.HealthcareService, ResourceType.ImagingObjectSelection, ResourceType.ImagingStudy, ResourceType.Immunization, ResourceType.ImmunizationRecommendation, ResourceType.ImplementationGuide, ResourceType.List, ResourceType.Location, ResourceType.Media, ResourceType.Medication, ResourceType.MedicationAdministration, ResourceType.MedicationDispense, ResourceType.MedicationOrder, ResourceType.MedicationStatement, ResourceType.MessageHeader, ResourceType.NamingSystem, ResourceType.NutritionOrder, ResourceType.Observation, ResourceType.OperationDefinition, ResourceType.OperationOutcome, ResourceType.Order, ResourceType.OrderResponse, ResourceType.Organization, ResourceType.Patient, ResourceType.PaymentNotice, ResourceType.PaymentReconciliation, ResourceType.Person, ResourceType.Practitioner, ResourceType.Procedure, ResourceType.ProcedureRequest, ResourceType.ProcessRequest, ResourceType.ProcessResponse, ResourceType.Provenance, ResourceType.Questionnaire, ResourceType.QuestionnaireResponse, ResourceType.ReferralRequest, ResourceType.RelatedPerson, ResourceType.RiskAssessment, ResourceType.Schedule, ResourceType.SearchParameter, ResourceType.Slot, ResourceType.Specimen, ResourceType.StructureDefinition, ResourceType.Subscription, ResourceType.Substance, ResourceType.SupplyDelivery, ResourceType.SupplyRequest, ResourceType.TestScript, ResourceType.ValueSet, ResourceType.VisionPrescription, }, XPath = "f:Composition/f:subject", Expression = "Composition.subject" },
new SearchParamDefinition() { Resource = "Composition", Name = "title", Description = @"Human Readable name/title", Type = SearchParamType.String, Path = new string[] { "Composition.title", }, XPath = "f:Composition/f:title", Expression = "Composition.title" },
new SearchParamDefinition() { Resource = "Composition", Name = "type", Description = @"Kind of composition (LOINC if possible)", Type = SearchParamType.Token, Path = new string[] { "Composition.type", }, XPath = "f:Composition/f:type", Expression = "Composition.type" },
new SearchParamDefinition() { Resource = "ConceptMap", Name = "context", Description = @"A use context assigned to the concept map", Type = SearchParamType.Token, Path = new string[] { "ConceptMap.useContext", }, XPath = "f:ConceptMap/f:useContext", Expression = "ConceptMap.useContext" },
new SearchParamDefinition() { Resource = "ConceptMap", Name = "date", Description = @"The concept map publication date", Type = SearchParamType.Date, Path = new string[] { "ConceptMap.date", }, XPath = "f:ConceptMap/f:date", Expression = "ConceptMap.date" },
new SearchParamDefinition() { Resource = "ConceptMap", Name = "dependson", Description = @"Reference to element/field/ValueSet mapping depends on", Type = SearchParamType.Uri, Path = new string[] { "ConceptMap.element.target.dependsOn.element", }, XPath = "f:ConceptMap/f:element/f:target/f:dependsOn/f:element", Expression = "ConceptMap.element.target.dependsOn.element" },
new SearchParamDefinition() { Resource = "ConceptMap", Name = "description", Description = @"Text search in the description of the concept map", Type = SearchParamType.String, Path = new string[] { "ConceptMap.description", }, XPath = "f:ConceptMap/f:description", Expression = "ConceptMap.description" },
new SearchParamDefinition() { Resource = "ConceptMap", Name = "identifier", Description = @"Additional identifier for the concept map", Type = SearchParamType.Token, Path = new string[] { "ConceptMap.identifier", }, XPath = "f:ConceptMap/f:identifier", Expression = "ConceptMap.identifier" },
new SearchParamDefinition() { Resource = "ConceptMap", Name = "name", Description = @"Name of the concept map", Type = SearchParamType.String, Path = new string[] { "ConceptMap.name", }, XPath = "f:ConceptMap/f:name", Expression = "ConceptMap.name" },
new SearchParamDefinition() { Resource = "ConceptMap", Name = "product", Description = @"Reference to element/field/ValueSet mapping depends on", Type = SearchParamType.Uri, Path = new string[] { "ConceptMap.element.target.product.element", }, XPath = "f:ConceptMap/f:element/f:target/f:product/f:element", Expression = "ConceptMap.element.target.product.element" },
new SearchParamDefinition() { Resource = "ConceptMap", Name = "publisher", Description = @"Name of the publisher of the concept map", Type = SearchParamType.String, Path = new string[] { "ConceptMap.publisher", }, XPath = "f:ConceptMap/f:publisher", Expression = "ConceptMap.publisher" },
new SearchParamDefinition() { Resource = "ConceptMap", Name = "source", Description = @"Identifies the source of the concepts which are being mapped", Type = SearchParamType.Reference, Path = new string[] { "ConceptMap.sourceReference", }, Target = new ResourceType[] { ResourceType.StructureDefinition, ResourceType.ValueSet, }, XPath = "f:ConceptMap/f:sourceReference", Expression = "ConceptMap.sourceReference" },
new SearchParamDefinition() { Resource = "ConceptMap", Name = "sourcecode", Description = @"Identifies element being mapped", Type = SearchParamType.Token, Path = new string[] { "ConceptMap.element.code", }, XPath = "f:ConceptMap/f:element/f:code", Expression = "ConceptMap.element.code" },
new SearchParamDefinition() { Resource = "ConceptMap", Name = "sourcesystem", Description = @"Code System (if value set crosses code systems)", Type = SearchParamType.Uri, Path = new string[] { "ConceptMap.element.codeSystem", }, XPath = "f:ConceptMap/f:element/f:codeSystem", Expression = "ConceptMap.element.codeSystem" },
new SearchParamDefinition() { Resource = "ConceptMap", Name = "sourceuri", Description = @"Identifies the source of the concepts which are being mapped", Type = SearchParamType.Reference, Path = new string[] { "ConceptMap.sourceUri", }, Target = new ResourceType[] { ResourceType.StructureDefinition, ResourceType.ValueSet, }, XPath = "f:ConceptMap/f:sourceUri", Expression = "ConceptMap.sourceUri" },
new SearchParamDefinition() { Resource = "ConceptMap", Name = "status", Description = @"Status of the concept map", Type = SearchParamType.Token, Path = new string[] { "ConceptMap.status", }, XPath = "f:ConceptMap/f:status", Expression = "ConceptMap.status" },
new SearchParamDefinition() { Resource = "ConceptMap", Name = "target", Description = @"Provides context to the mappings", Type = SearchParamType.Reference, Path = new string[] { "ConceptMap.targetUri", "ConceptMap.targetReference", }, Target = new ResourceType[] { ResourceType.StructureDefinition, ResourceType.ValueSet, }, XPath = "f:ConceptMap/f:targetUri | f:ConceptMap/f:targetReference", Expression = "ConceptMap.target[x]" },
new SearchParamDefinition() { Resource = "ConceptMap", Name = "targetcode", Description = @"Code that identifies the target element", Type = SearchParamType.Token, Path = new string[] { "ConceptMap.element.target.code", }, XPath = "f:ConceptMap/f:element/f:target/f:code", Expression = "ConceptMap.element.target.code" },
new SearchParamDefinition() { Resource = "ConceptMap", Name = "targetsystem", Description = @"System of the target (if necessary)", Type = SearchParamType.Uri, Path = new string[] { "ConceptMap.element.target.codeSystem", }, XPath = "f:ConceptMap/f:element/f:target/f:codeSystem", Expression = "ConceptMap.element.target.codeSystem" },
new SearchParamDefinition() { Resource = "ConceptMap", Name = "url", Description = @"The URL of the concept map", Type = SearchParamType.Uri, Path = new string[] { "ConceptMap.url", }, XPath = "f:ConceptMap/f:url", Expression = "ConceptMap.url" },
new SearchParamDefinition() { Resource = "ConceptMap", Name = "version", Description = @"The version identifier of the concept map", Type = SearchParamType.Token, Path = new string[] { "ConceptMap.version", }, XPath = "f:ConceptMap/f:version", Expression = "ConceptMap.version" },
new SearchParamDefinition() { Resource = "Condition", Name = "asserter", Description = @"Person who asserts this condition", Type = SearchParamType.Reference, Path = new string[] { "Condition.asserter", }, Target = new ResourceType[] { ResourceType.Patient, ResourceType.Practitioner, }, XPath = "f:Condition/f:asserter", Expression = "Condition.asserter" },
new SearchParamDefinition() { Resource = "Condition", Name = "body-site", Description = @"Anatomical location, if relevant", Type = SearchParamType.Token, Path = new string[] { "Condition.bodySite", }, XPath = "f:Condition/f:bodySite", Expression = "Condition.bodySite" },
new SearchParamDefinition() { Resource = "Condition", Name = "category", Description = @"The category of the condition", Type = SearchParamType.Token, Path = new string[] { "Condition.category", }, XPath = "f:Condition/f:category", Expression = "Condition.category" },
new SearchParamDefinition() { Resource = "Condition", Name = "clinicalstatus", Description = @"The clinical status of the condition", Type = SearchParamType.Token, Path = new string[] { "Condition.clinicalStatus", }, XPath = "f:Condition/f:clinicalStatus", Expression = "Condition.clinicalStatus" },
new SearchParamDefinition() { Resource = "Condition", Name = "code", Description = @"Code for the condition", Type = SearchParamType.Token, Path = new string[] { "Condition.code", }, XPath = "f:Condition/f:code", Expression = "Condition.code" },
new SearchParamDefinition() { Resource = "Condition", Name = "date-recorded", Description = @"A date, when the Condition statement was documented", Type = SearchParamType.Date, Path = new string[] { "Condition.dateRecorded", }, XPath = "f:Condition/f:dateRecorded", Expression = "Condition.dateRecorded" },
new SearchParamDefinition() { Resource = "Condition", Name = "encounter", Description = @"Encounter when condition first asserted", Type = SearchParamType.Reference, Path = new string[] { "Condition.encounter", }, Target = new ResourceType[] { ResourceType.Encounter, }, XPath = "f:Condition/f:encounter", Expression = "Condition.encounter" },
new SearchParamDefinition() { Resource = "Condition", Name = "evidence", Description = @"Manifestation/symptom", Type = SearchParamType.Token, Path = new string[] { "Condition.evidence.code", }, XPath = "f:Condition/f:evidence/f:code", Expression = "Condition.evidence.code" },
new SearchParamDefinition() { Resource = "Condition", Name = "identifier", Description = @"A unique identifier of the condition record", Type = SearchParamType.Token, Path = new string[] { "Condition.identifier", }, XPath = "f:Condition/f:identifier", Expression = "Condition.identifier" },
new SearchParamDefinition() { Resource = "Condition", Name = "onset", Description = @"Date related onsets (dateTime and Period)", Type = SearchParamType.Date, Path = new string[] { "Condition.onsetDateTime", "Condition.onsetAge", "Condition.onsetPeriod", "Condition.onsetRange", "Condition.onsetString", }, XPath = "f:Condition/f:onsetDateTime | f:Condition/f:onsetAge | f:Condition/f:onsetPeriod | f:Condition/f:onsetRange | f:Condition/f:onsetString", Expression = "Condition.onset[x]" },
new SearchParamDefinition() { Resource = "Condition", Name = "onset-info", Description = @"Other onsets (boolean, age, range, string)", Type = SearchParamType.String, Path = new string[] { "Condition.onsetDateTime", "Condition.onsetAge", "Condition.onsetPeriod", "Condition.onsetRange", "Condition.onsetString", }, XPath = "f:Condition/f:onsetDateTime | f:Condition/f:onsetAge | f:Condition/f:onsetPeriod | f:Condition/f:onsetRange | f:Condition/f:onsetString", Expression = "Condition.onset[x]" },
new SearchParamDefinition() { Resource = "Condition", Name = "patient", Description = @"Who has the condition?", Type = SearchParamType.Reference, Path = new string[] { "Condition.patient", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:Condition/f:patient", Expression = "Condition.patient" },
new SearchParamDefinition() { Resource = "Condition", Name = "severity", Description = @"The severity of the condition", Type = SearchParamType.Token, Path = new string[] { "Condition.severity", }, XPath = "f:Condition/f:severity", Expression = "Condition.severity" },
new SearchParamDefinition() { Resource = "Condition", Name = "stage", Description = @"Simple summary (disease specific)", Type = SearchParamType.Token, Path = new string[] { "Condition.stage.summary", }, XPath = "f:Condition/f:stage/f:summary", Expression = "Condition.stage.summary" },
new SearchParamDefinition() { Resource = "Condition", Name = "age", Description = @"Search based on Condition onsetAge", Type = SearchParamType.Number, Path = new string[] { } },
new SearchParamDefinition() { Resource = "Conformance", Name = "date", Description = @"The conformance statement publication date", Type = SearchParamType.Date, Path = new string[] { "Conformance.date", }, XPath = "f:Conformance/f:date", Expression = "Conformance.date" },
new SearchParamDefinition() { Resource = "Conformance", Name = "description", Description = @"Text search in the description of the conformance statement", Type = SearchParamType.String, Path = new string[] { "Conformance.description", }, XPath = "f:Conformance/f:description", Expression = "Conformance.description" },
new SearchParamDefinition() { Resource = "Conformance", Name = "event", Description = @"Event code in a conformance statement", Type = SearchParamType.Token, Path = new string[] { "Conformance.messaging.event.code", }, XPath = "f:Conformance/f:messaging/f:event/f:code", Expression = "Conformance.messaging.event.code" },
new SearchParamDefinition() { Resource = "Conformance", Name = "fhirversion", Description = @"The version of FHIR", Type = SearchParamType.Token, Path = new string[] { "Conformance.version", }, XPath = "f:Conformance/f:version", Expression = "Conformance.version" },
new SearchParamDefinition() { Resource = "Conformance", Name = "format", Description = @"formats supported (xml | json | mime type)", Type = SearchParamType.Token, Path = new string[] { "Conformance.format", }, XPath = "f:Conformance/f:format", Expression = "Conformance.format" },
new SearchParamDefinition() { Resource = "Conformance", Name = "mode", Description = @"Mode - restful (server/client) or messaging (sender/receiver)", Type = SearchParamType.Token, Path = new string[] { "Conformance.rest.mode", }, XPath = "f:Conformance/f:rest/f:mode", Expression = "Conformance.rest.mode" },
new SearchParamDefinition() { Resource = "Conformance", Name = "name", Description = @"Name of the conformance statement", Type = SearchParamType.String, Path = new string[] { "Conformance.name", }, XPath = "f:Conformance/f:name", Expression = "Conformance.name" },
new SearchParamDefinition() { Resource = "Conformance", Name = "profile", Description = @"A profile id invoked in a conformance statement", Type = SearchParamType.Reference, Path = new string[] { "Conformance.rest.resource.profile", }, Target = new ResourceType[] { ResourceType.StructureDefinition, }, XPath = "f:Conformance/f:rest/f:resource/f:profile", Expression = "Conformance.rest.resource.profile" },
new SearchParamDefinition() { Resource = "Conformance", Name = "publisher", Description = @"Name of the publisher of the conformance statement", Type = SearchParamType.String, Path = new string[] { "Conformance.publisher", }, XPath = "f:Conformance/f:publisher", Expression = "Conformance.publisher" },
new SearchParamDefinition() { Resource = "Conformance", Name = "resource", Description = @"Name of a resource mentioned in a conformance statement", Type = SearchParamType.Token, Path = new string[] { "Conformance.rest.resource.type", }, XPath = "f:Conformance/f:rest/f:resource/f:type", Expression = "Conformance.rest.resource.type" },
new SearchParamDefinition() { Resource = "Conformance", Name = "security", Description = @"OAuth | SMART-on-FHIR | NTLM | Basic | Kerberos | Certificates", Type = SearchParamType.Token, Path = new string[] { "Conformance.rest.security.service", }, XPath = "f:Conformance/f:rest/f:security/f:service", Expression = "Conformance.rest.security.service" },
new SearchParamDefinition() { Resource = "Conformance", Name = "software", Description = @"Part of a the name of a software application", Type = SearchParamType.String, Path = new string[] { "Conformance.software.name", }, XPath = "f:Conformance/f:software/f:name", Expression = "Conformance.software.name" },
new SearchParamDefinition() { Resource = "Conformance", Name = "status", Description = @"The current status of the conformance statement", Type = SearchParamType.Token, Path = new string[] { "Conformance.status", }, XPath = "f:Conformance/f:status", Expression = "Conformance.status" },
new SearchParamDefinition() { Resource = "Conformance", Name = "supported-profile", Description = @"Profiles for use cases supported", Type = SearchParamType.Reference, Path = new string[] { "Conformance.profile", }, Target = new ResourceType[] { ResourceType.StructureDefinition, }, XPath = "f:Conformance/f:profile", Expression = "Conformance.profile" },
new SearchParamDefinition() { Resource = "Conformance", Name = "url", Description = @"The uri that identifies the conformance statement", Type = SearchParamType.Uri, Path = new string[] { "Conformance.url", }, XPath = "f:Conformance/f:url", Expression = "Conformance.url" },
new SearchParamDefinition() { Resource = "Conformance", Name = "version", Description = @"The version identifier of the conformance statement", Type = SearchParamType.Token, Path = new string[] { "Conformance.version", }, XPath = "f:Conformance/f:version", Expression = "Conformance.version" },
new SearchParamDefinition() { Resource = "Contract", Name = "actor", Description = @"Contract Actor Type", Type = SearchParamType.Reference, Path = new string[] { "Contract.actor.entity", }, Target = new ResourceType[] { ResourceType.Contract, ResourceType.Device, ResourceType.Group, ResourceType.Location, ResourceType.Organization, ResourceType.Patient, ResourceType.Practitioner, ResourceType.RelatedPerson, ResourceType.Substance, }, XPath = "f:Contract/f:actor/f:entity", Expression = "Contract.actor.entity" },
new SearchParamDefinition() { Resource = "Contract", Name = "identifier", Description = @"The identity of the contract", Type = SearchParamType.Token, Path = new string[] { "Contract.identifier", }, XPath = "f:Contract/f:identifier", Expression = "Contract.identifier" },
new SearchParamDefinition() { Resource = "Contract", Name = "patient", Description = @"The identity of the target of the contract (if a patient)", Type = SearchParamType.Reference, Path = new string[] { "Contract.subject", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:Contract/f:subject", Expression = "Contract.subject" },
new SearchParamDefinition() { Resource = "Contract", Name = "signer", Description = @"Contract Signatory Party", Type = SearchParamType.Reference, Path = new string[] { "Contract.signer.party", }, Target = new ResourceType[] { ResourceType.Organization, ResourceType.Patient, ResourceType.Practitioner, ResourceType.RelatedPerson, }, XPath = "f:Contract/f:signer/f:party", Expression = "Contract.signer.party" },
new SearchParamDefinition() { Resource = "Contract", Name = "subject", Description = @"The identity of the target of the contract", Type = SearchParamType.Reference, Path = new string[] { "Contract.subject", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:Contract/f:subject", Expression = "Contract.subject" },
new SearchParamDefinition() { Resource = "Coverage", Name = "dependent", Description = @"Dependent number", Type = SearchParamType.Token, Path = new string[] { "Coverage.dependent", }, XPath = "f:Coverage/f:dependent", Expression = "Coverage.dependent" },
new SearchParamDefinition() { Resource = "Coverage", Name = "group", Description = @"Group identifier", Type = SearchParamType.Token, Path = new string[] { "Coverage.group", }, XPath = "f:Coverage/f:group", Expression = "Coverage.group" },
new SearchParamDefinition() { Resource = "Coverage", Name = "identifier", Description = @"The primary identifier of the insured", Type = SearchParamType.Token, Path = new string[] { "Coverage.identifier", }, XPath = "f:Coverage/f:identifier", Expression = "Coverage.identifier" },
new SearchParamDefinition() { Resource = "Coverage", Name = "issuer", Description = @"The identity of the insurer", Type = SearchParamType.Reference, Path = new string[] { "Coverage.issuer", }, Target = new ResourceType[] { ResourceType.Organization, }, XPath = "f:Coverage/f:issuer", Expression = "Coverage.issuer" },
new SearchParamDefinition() { Resource = "Coverage", Name = "plan", Description = @"A plan or policy identifier", Type = SearchParamType.Token, Path = new string[] { "Coverage.plan", }, XPath = "f:Coverage/f:plan", Expression = "Coverage.plan" },
new SearchParamDefinition() { Resource = "Coverage", Name = "sequence", Description = @"Sequence number", Type = SearchParamType.Token, Path = new string[] { "Coverage.sequence", }, XPath = "f:Coverage/f:sequence", Expression = "Coverage.sequence" },
new SearchParamDefinition() { Resource = "Coverage", Name = "subplan", Description = @"Sub-plan identifier", Type = SearchParamType.Token, Path = new string[] { "Coverage.subPlan", }, XPath = "f:Coverage/f:subPlan", Expression = "Coverage.subPlan" },
new SearchParamDefinition() { Resource = "Coverage", Name = "type", Description = @"The kind of coverage", Type = SearchParamType.Token, Path = new string[] { "Coverage.type", }, XPath = "f:Coverage/f:type", Expression = "Coverage.type" },
new SearchParamDefinition() { Resource = "DataElement", Name = "code", Description = @"A code for the data element (server may choose to do subsumption)", Type = SearchParamType.Token, Path = new string[] { "DataElement.element.code", }, XPath = "f:DataElement/f:element/f:code", Expression = "DataElement.element.code" },
new SearchParamDefinition() { Resource = "DataElement", Name = "context", Description = @"A use context assigned to the data element", Type = SearchParamType.Token, Path = new string[] { "DataElement.useContext", }, XPath = "f:DataElement/f:useContext", Expression = "DataElement.useContext" },
new SearchParamDefinition() { Resource = "DataElement", Name = "date", Description = @"The data element publication date", Type = SearchParamType.Date, Path = new string[] { "DataElement.date", }, XPath = "f:DataElement/f:date", Expression = "DataElement.date" },
new SearchParamDefinition() { Resource = "DataElement", Name = "description", Description = @"Text search in the description of the data element. This corresponds to the definition of the first DataElement.element.", Type = SearchParamType.String, Path = new string[] { "DataElement.element.definition", }, XPath = "f:DataElement/f:element/f:definition", Expression = "DataElement.element.definition" },
new SearchParamDefinition() { Resource = "DataElement", Name = "identifier", Description = @"The identifier of the data element", Type = SearchParamType.Token, Path = new string[] { "DataElement.identifier", }, XPath = "f:DataElement/f:identifier", Expression = "DataElement.identifier" },
new SearchParamDefinition() { Resource = "DataElement", Name = "name", Description = @"Name of the data element", Type = SearchParamType.String, Path = new string[] { "DataElement.name", }, XPath = "f:DataElement/f:name", Expression = "DataElement.name" },
new SearchParamDefinition() { Resource = "DataElement", Name = "publisher", Description = @"Name of the publisher of the data element", Type = SearchParamType.String, Path = new string[] { "DataElement.publisher", }, XPath = "f:DataElement/f:publisher", Expression = "DataElement.publisher" },
new SearchParamDefinition() { Resource = "DataElement", Name = "status", Description = @"The current status of the data element", Type = SearchParamType.Token, Path = new string[] { "DataElement.status", }, XPath = "f:DataElement/f:status", Expression = "DataElement.status" },
new SearchParamDefinition() { Resource = "DataElement", Name = "stringency", Description = @"The stringency of the data element definition", Type = SearchParamType.Token, Path = new string[] { "DataElement.stringency", }, XPath = "f:DataElement/f:stringency", Expression = "DataElement.stringency" },
new SearchParamDefinition() { Resource = "DataElement", Name = "url", Description = @"The official URL for the data element", Type = SearchParamType.Uri, Path = new string[] { "DataElement.url", }, XPath = "f:DataElement/f:url", Expression = "DataElement.url" },
new SearchParamDefinition() { Resource = "DataElement", Name = "version", Description = @"The version identifier of the data element", Type = SearchParamType.String, Path = new string[] { "DataElement.version", }, XPath = "f:DataElement/f:version", Expression = "DataElement.version" },
new SearchParamDefinition() { Resource = "DataElement", Name = "objectClass", Description = @"Matches on the 11179-objectClass extension value", Type = SearchParamType.Token, Path = new string[] { "DataElement.element.mapping.extension[@url='http:..hl7.org.fhir.StructureDefinition.11179-objectClass']", "DataElement.element.mapping.extension[@url='http:..hl7.org.fhir.StructureDefinition.11179-objectClass']", }, XPath = "f:DataElement/f:element/f:mapping/f:extension[@url='http://hl7.org/fhir/StructureDefinition/11179-objectClass'] | f:DataElement/f:element/f:mapping/f:extension[@url='http://hl7.org/fhir/StructureDefinition/11179-objectClass']" },
new SearchParamDefinition() { Resource = "DataElement", Name = "objectClassProperty", Description = @"Matches on the 11179-objectClassProperty extension value", Type = SearchParamType.Token, Path = new string[] { "DataElement.element.mapping.extension[@url='http:..hl7.org.fhir.StructureDefinition.11179-objectClassProperty']", "DataElement.element.mapping.extension[@url='http:..hl7.org.fhir.StructureDefinition.11179-objectClassProperty']", }, XPath = "f:DataElement/f:element/f:mapping/f:extension[@url='http://hl7.org/fhir/StructureDefinition/11179-objectClassProperty'] | f:DataElement/f:element/f:mapping/f:extension[@url='http://hl7.org/fhir/StructureDefinition/11179-objectClassProperty']" },
new SearchParamDefinition() { Resource = "DetectedIssue", Name = "author", Description = @"The provider or device that identified the issue", Type = SearchParamType.Reference, Path = new string[] { "DetectedIssue.author", }, Target = new ResourceType[] { ResourceType.Device, ResourceType.Practitioner, }, XPath = "f:DetectedIssue/f:author", Expression = "DetectedIssue.author" },
new SearchParamDefinition() { Resource = "DetectedIssue", Name = "category", Description = @"Issue Category, e.g. drug-drug, duplicate therapy, etc.", Type = SearchParamType.Token, Path = new string[] { "DetectedIssue.category", }, XPath = "f:DetectedIssue/f:category", Expression = "DetectedIssue.category" },
new SearchParamDefinition() { Resource = "DetectedIssue", Name = "date", Description = @"When identified", Type = SearchParamType.Date, Path = new string[] { "DetectedIssue.date", }, XPath = "f:DetectedIssue/f:date", Expression = "DetectedIssue.date" },
new SearchParamDefinition() { Resource = "DetectedIssue", Name = "identifier", Description = @"Unique id for the detected issue", Type = SearchParamType.Token, Path = new string[] { "DetectedIssue.identifier", }, XPath = "f:DetectedIssue/f:identifier", Expression = "DetectedIssue.identifier" },
new SearchParamDefinition() { Resource = "DetectedIssue", Name = "implicated", Description = @"Problem resource", Type = SearchParamType.Reference, Path = new string[] { "DetectedIssue.implicated", }, Target = new ResourceType[] { ResourceType.Account, ResourceType.AllergyIntolerance, ResourceType.Appointment, ResourceType.AppointmentResponse, ResourceType.AuditEvent, ResourceType.Basic, ResourceType.Binary, ResourceType.BodySite, ResourceType.Bundle, ResourceType.CarePlan, ResourceType.Claim, ResourceType.ClaimResponse, ResourceType.ClinicalImpression, ResourceType.Communication, ResourceType.CommunicationRequest, ResourceType.Composition, ResourceType.ConceptMap, ResourceType.Condition, ResourceType.Conformance, ResourceType.Contract, ResourceType.Coverage, ResourceType.DataElement, ResourceType.DetectedIssue, ResourceType.Device, ResourceType.DeviceComponent, ResourceType.DeviceMetric, ResourceType.DeviceUseRequest, ResourceType.DeviceUseStatement, ResourceType.DiagnosticOrder, ResourceType.DiagnosticReport, ResourceType.DocumentManifest, ResourceType.DocumentReference, ResourceType.EligibilityRequest, ResourceType.EligibilityResponse, ResourceType.Encounter, ResourceType.EnrollmentRequest, ResourceType.EnrollmentResponse, ResourceType.EpisodeOfCare, ResourceType.ExplanationOfBenefit, ResourceType.FamilyMemberHistory, ResourceType.Flag, ResourceType.Goal, ResourceType.Group, ResourceType.HealthcareService, ResourceType.ImagingObjectSelection, ResourceType.ImagingStudy, ResourceType.Immunization, ResourceType.ImmunizationRecommendation, ResourceType.ImplementationGuide, ResourceType.List, ResourceType.Location, ResourceType.Media, ResourceType.Medication, ResourceType.MedicationAdministration, ResourceType.MedicationDispense, ResourceType.MedicationOrder, ResourceType.MedicationStatement, ResourceType.MessageHeader, ResourceType.NamingSystem, ResourceType.NutritionOrder, ResourceType.Observation, ResourceType.OperationDefinition, ResourceType.OperationOutcome, ResourceType.Order, ResourceType.OrderResponse, ResourceType.Organization, ResourceType.Patient, ResourceType.PaymentNotice, ResourceType.PaymentReconciliation, ResourceType.Person, ResourceType.Practitioner, ResourceType.Procedure, ResourceType.ProcedureRequest, ResourceType.ProcessRequest, ResourceType.ProcessResponse, ResourceType.Provenance, ResourceType.Questionnaire, ResourceType.QuestionnaireResponse, ResourceType.ReferralRequest, ResourceType.RelatedPerson, ResourceType.RiskAssessment, ResourceType.Schedule, ResourceType.SearchParameter, ResourceType.Slot, ResourceType.Specimen, ResourceType.StructureDefinition, ResourceType.Subscription, ResourceType.Substance, ResourceType.SupplyDelivery, ResourceType.SupplyRequest, ResourceType.TestScript, ResourceType.ValueSet, ResourceType.VisionPrescription, }, XPath = "f:DetectedIssue/f:implicated", Expression = "DetectedIssue.implicated" },
new SearchParamDefinition() { Resource = "DetectedIssue", Name = "patient", Description = @"Associated patient", Type = SearchParamType.Reference, Path = new string[] { "DetectedIssue.patient", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:DetectedIssue/f:patient", Expression = "DetectedIssue.patient" },
new SearchParamDefinition() { Resource = "Device", Name = "identifier", Description = @"Instance id from manufacturer, owner, and others", Type = SearchParamType.Token, Path = new string[] { "Device.identifier", }, XPath = "f:Device/f:identifier", Expression = "Device.identifier" },
new SearchParamDefinition() { Resource = "Device", Name = "location", Description = @"A location, where the resource is found", Type = SearchParamType.Reference, Path = new string[] { "Device.location", }, Target = new ResourceType[] { ResourceType.Location, }, XPath = "f:Device/f:location", Expression = "Device.location" },
new SearchParamDefinition() { Resource = "Device", Name = "manufacturer", Description = @"The manufacturer of the device", Type = SearchParamType.String, Path = new string[] { "Device.manufacturer", }, XPath = "f:Device/f:manufacturer", Expression = "Device.manufacturer" },
new SearchParamDefinition() { Resource = "Device", Name = "model", Description = @"The model of the device", Type = SearchParamType.String, Path = new string[] { "Device.model", }, XPath = "f:Device/f:model", Expression = "Device.model" },
new SearchParamDefinition() { Resource = "Device", Name = "organization", Description = @"The organization responsible for the device", Type = SearchParamType.Reference, Path = new string[] { "Device.owner", }, Target = new ResourceType[] { ResourceType.Organization, }, XPath = "f:Device/f:owner", Expression = "Device.owner" },
new SearchParamDefinition() { Resource = "Device", Name = "patient", Description = @"Patient information, if the resource is affixed to a person", Type = SearchParamType.Reference, Path = new string[] { "Device.patient", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:Device/f:patient", Expression = "Device.patient" },
new SearchParamDefinition() { Resource = "Device", Name = "type", Description = @"The type of the device", Type = SearchParamType.Token, Path = new string[] { "Device.type", }, XPath = "f:Device/f:type", Expression = "Device.type" },
new SearchParamDefinition() { Resource = "Device", Name = "udi", Description = @"FDA mandated Unique Device Identifier", Type = SearchParamType.String, Path = new string[] { "Device.udi", }, XPath = "f:Device/f:udi", Expression = "Device.udi" },
new SearchParamDefinition() { Resource = "Device", Name = "url", Description = @"Network address to contact device", Type = SearchParamType.Uri, Path = new string[] { "Device.url", }, XPath = "f:Device/f:url", Expression = "Device.url" },
new SearchParamDefinition() { Resource = "DeviceComponent", Name = "parent", Description = @"The parent DeviceComponent resource", Type = SearchParamType.Reference, Path = new string[] { "DeviceComponent.parent", }, Target = new ResourceType[] { ResourceType.DeviceComponent, }, XPath = "f:DeviceComponent/f:parent", Expression = "DeviceComponent.parent" },
new SearchParamDefinition() { Resource = "DeviceComponent", Name = "source", Description = @"The device source", Type = SearchParamType.Reference, Path = new string[] { "DeviceComponent.source", }, Target = new ResourceType[] { ResourceType.Device, }, XPath = "f:DeviceComponent/f:source", Expression = "DeviceComponent.source" },
new SearchParamDefinition() { Resource = "DeviceComponent", Name = "type", Description = @"The device component type", Type = SearchParamType.Token, Path = new string[] { "DeviceComponent.type", }, XPath = "f:DeviceComponent/f:type", Expression = "DeviceComponent.type" },
new SearchParamDefinition() { Resource = "DeviceMetric", Name = "category", Description = @"The category of the metric", Type = SearchParamType.Token, Path = new string[] { "DeviceMetric.category", }, XPath = "f:DeviceMetric/f:category", Expression = "DeviceMetric.category" },
new SearchParamDefinition() { Resource = "DeviceMetric", Name = "identifier", Description = @"The identifier of the metric", Type = SearchParamType.Token, Path = new string[] { "DeviceMetric.identifier", }, XPath = "f:DeviceMetric/f:identifier", Expression = "DeviceMetric.identifier" },
new SearchParamDefinition() { Resource = "DeviceMetric", Name = "parent", Description = @"The parent DeviceMetric resource", Type = SearchParamType.Reference, Path = new string[] { "DeviceMetric.parent", }, Target = new ResourceType[] { ResourceType.DeviceComponent, }, XPath = "f:DeviceMetric/f:parent", Expression = "DeviceMetric.parent" },
new SearchParamDefinition() { Resource = "DeviceMetric", Name = "source", Description = @"The device resource", Type = SearchParamType.Reference, Path = new string[] { "DeviceMetric.source", }, Target = new ResourceType[] { ResourceType.Device, }, XPath = "f:DeviceMetric/f:source", Expression = "DeviceMetric.source" },
new SearchParamDefinition() { Resource = "DeviceMetric", Name = "type", Description = @"The component type", Type = SearchParamType.Token, Path = new string[] { "DeviceMetric.type", }, XPath = "f:DeviceMetric/f:type", Expression = "DeviceMetric.type" },
new SearchParamDefinition() { Resource = "DeviceUseRequest", Name = "device", Description = @"Device requested", Type = SearchParamType.Reference, Path = new string[] { "DeviceUseRequest.device", }, Target = new ResourceType[] { ResourceType.Device, }, XPath = "f:DeviceUseRequest/f:device", Expression = "DeviceUseRequest.device" },
new SearchParamDefinition() { Resource = "DeviceUseRequest", Name = "patient", Description = @"Search by subject - a patient", Type = SearchParamType.Reference, Path = new string[] { "DeviceUseRequest.subject", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:DeviceUseRequest/f:subject", Expression = "DeviceUseRequest.subject" },
new SearchParamDefinition() { Resource = "DeviceUseRequest", Name = "subject", Description = @"Search by subject", Type = SearchParamType.Reference, Path = new string[] { "DeviceUseRequest.subject", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:DeviceUseRequest/f:subject", Expression = "DeviceUseRequest.subject" },
new SearchParamDefinition() { Resource = "DeviceUseStatement", Name = "device", Description = @"Search by device", Type = SearchParamType.Reference, Path = new string[] { "DeviceUseStatement.device", }, Target = new ResourceType[] { ResourceType.Device, }, XPath = "f:DeviceUseStatement/f:device", Expression = "DeviceUseStatement.device" },
new SearchParamDefinition() { Resource = "DeviceUseStatement", Name = "patient", Description = @"Search by subject - a patient", Type = SearchParamType.Reference, Path = new string[] { "DeviceUseStatement.subject", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:DeviceUseStatement/f:subject", Expression = "DeviceUseStatement.subject" },
new SearchParamDefinition() { Resource = "DeviceUseStatement", Name = "subject", Description = @"Search by subject", Type = SearchParamType.Reference, Path = new string[] { "DeviceUseStatement.subject", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:DeviceUseStatement/f:subject", Expression = "DeviceUseStatement.subject" },
new SearchParamDefinition() { Resource = "DiagnosticOrder", Name = "actor", Description = @"Who recorded or did this", Type = SearchParamType.Reference, Path = new string[] { "DiagnosticOrder.event.actor", "DiagnosticOrder.item.event.actor", }, Target = new ResourceType[] { ResourceType.Device, ResourceType.Practitioner, }, XPath = "f:DiagnosticOrder/f:event/f:actor | f:DiagnosticOrder/f:item/f:event/f:actor", Expression = "DiagnosticOrder.event.actor | DiagnosticOrder.item.event.actor" },
new SearchParamDefinition() { Resource = "DiagnosticOrder", Name = "bodysite", Description = @"Location of requested test (if applicable)", Type = SearchParamType.Token, Path = new string[] { "DiagnosticOrder.item.bodySite", }, XPath = "f:DiagnosticOrder/f:item/f:bodySite", Expression = "DiagnosticOrder.item.bodySite" },
new SearchParamDefinition() { Resource = "DiagnosticOrder", Name = "code", Description = @"Code to indicate the item (test or panel) being ordered", Type = SearchParamType.Token, Path = new string[] { "DiagnosticOrder.item.code", }, XPath = "f:DiagnosticOrder/f:item/f:code", Expression = "DiagnosticOrder.item.code" },
new SearchParamDefinition() { Resource = "DiagnosticOrder", Name = "encounter", Description = @"The encounter that this diagnostic order is associated with", Type = SearchParamType.Reference, Path = new string[] { "DiagnosticOrder.encounter", }, Target = new ResourceType[] { ResourceType.Encounter, }, XPath = "f:DiagnosticOrder/f:encounter", Expression = "DiagnosticOrder.encounter" },
new SearchParamDefinition() { Resource = "DiagnosticOrder", Name = "event-date", Description = @"The date at which the event happened", Type = SearchParamType.Date, Path = new string[] { "DiagnosticOrder.event.dateTime", }, XPath = "f:DiagnosticOrder/f:event/f:dateTime", Expression = "DiagnosticOrder.event.dateTime" },
new SearchParamDefinition() { Resource = "DiagnosticOrder", Name = "event-status", Description = @"proposed | draft | planned | requested | received | accepted | in-progress | review | completed | cancelled | suspended | rejected | failed", Type = SearchParamType.Token, Path = new string[] { "DiagnosticOrder.event.status", }, XPath = "f:DiagnosticOrder/f:event/f:status", Expression = "DiagnosticOrder.event.status" },
new SearchParamDefinition() { Resource = "DiagnosticOrder", Name = "event-status-date", Description = @"A combination of past-status and date", Type = SearchParamType.Composite, Path = new string[] { } },
new SearchParamDefinition() { Resource = "DiagnosticOrder", Name = "identifier", Description = @"Identifiers assigned to this order", Type = SearchParamType.Token, Path = new string[] { "DiagnosticOrder.identifier", }, XPath = "f:DiagnosticOrder/f:identifier", Expression = "DiagnosticOrder.identifier" },
new SearchParamDefinition() { Resource = "DiagnosticOrder", Name = "item-date", Description = @"The date at which the event happened", Type = SearchParamType.Date, Path = new string[] { "DiagnosticOrder.item.event.dateTime", }, XPath = "f:DiagnosticOrder/f:item/f:event/f:dateTime", Expression = "DiagnosticOrder.item.event.dateTime" },
new SearchParamDefinition() { Resource = "DiagnosticOrder", Name = "item-past-status", Description = @"proposed | draft | planned | requested | received | accepted | in-progress | review | completed | cancelled | suspended | rejected | failed", Type = SearchParamType.Token, Path = new string[] { "DiagnosticOrder.item.event.status", }, XPath = "f:DiagnosticOrder/f:item/f:event/f:status", Expression = "DiagnosticOrder.item.event.status" },
new SearchParamDefinition() { Resource = "DiagnosticOrder", Name = "item-status", Description = @"proposed | draft | planned | requested | received | accepted | in-progress | review | completed | cancelled | suspended | rejected | failed", Type = SearchParamType.Token, Path = new string[] { "DiagnosticOrder.item.status", }, XPath = "f:DiagnosticOrder/f:item/f:status", Expression = "DiagnosticOrder.item.status" },
new SearchParamDefinition() { Resource = "DiagnosticOrder", Name = "item-status-date", Description = @"A combination of item-past-status and item-date", Type = SearchParamType.Composite, Path = new string[] { } },
new SearchParamDefinition() { Resource = "DiagnosticOrder", Name = "orderer", Description = @"Who ordered the test", Type = SearchParamType.Reference, Path = new string[] { "DiagnosticOrder.orderer", }, Target = new ResourceType[] { ResourceType.Practitioner, }, XPath = "f:DiagnosticOrder/f:orderer", Expression = "DiagnosticOrder.orderer" },
new SearchParamDefinition() { Resource = "DiagnosticOrder", Name = "patient", Description = @"Who and/or what test is about", Type = SearchParamType.Reference, Path = new string[] { "DiagnosticOrder.subject", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:DiagnosticOrder/f:subject", Expression = "DiagnosticOrder.subject" },
new SearchParamDefinition() { Resource = "DiagnosticOrder", Name = "specimen", Description = @"If the whole order relates to specific specimens", Type = SearchParamType.Reference, Path = new string[] { "DiagnosticOrder.specimen", "DiagnosticOrder.item.specimen", }, Target = new ResourceType[] { ResourceType.Specimen, }, XPath = "f:DiagnosticOrder/f:specimen | f:DiagnosticOrder/f:item/f:specimen", Expression = "DiagnosticOrder.specimen | DiagnosticOrder.item.specimen" },
new SearchParamDefinition() { Resource = "DiagnosticOrder", Name = "status", Description = @"proposed | draft | planned | requested | received | accepted | in-progress | review | completed | cancelled | suspended | rejected | failed", Type = SearchParamType.Token, Path = new string[] { "DiagnosticOrder.status", }, XPath = "f:DiagnosticOrder/f:status", Expression = "DiagnosticOrder.status" },
new SearchParamDefinition() { Resource = "DiagnosticOrder", Name = "subject", Description = @"Who and/or what test is about", Type = SearchParamType.Reference, Path = new string[] { "DiagnosticOrder.subject", }, Target = new ResourceType[] { ResourceType.Device, ResourceType.Group, ResourceType.Location, ResourceType.Patient, }, XPath = "f:DiagnosticOrder/f:subject", Expression = "DiagnosticOrder.subject" },
new SearchParamDefinition() { Resource = "DiagnosticReport", Name = "category", Description = @"Which diagnostic discipline/department created the report", Type = SearchParamType.Token, Path = new string[] { "DiagnosticReport.category", }, XPath = "f:DiagnosticReport/f:category", Expression = "DiagnosticReport.category" },
new SearchParamDefinition() { Resource = "DiagnosticReport", Name = "code", Description = @"The code for the report as a whole, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result", Type = SearchParamType.Token, Path = new string[] { "DiagnosticReport.code", }, XPath = "f:DiagnosticReport/f:code", Expression = "DiagnosticReport.code" },
new SearchParamDefinition() { Resource = "DiagnosticReport", Name = "date", Description = @"The clinically relevant time of the report", Type = SearchParamType.Date, Path = new string[] { "DiagnosticReport.effectiveDateTime", "DiagnosticReport.effectivePeriod", }, XPath = "f:DiagnosticReport/f:effectiveDateTime | f:DiagnosticReport/f:effectivePeriod", Expression = "DiagnosticReport.effective[x]" },
new SearchParamDefinition() { Resource = "DiagnosticReport", Name = "diagnosis", Description = @"A coded diagnosis on the report", Type = SearchParamType.Token, Path = new string[] { "DiagnosticReport.codedDiagnosis", }, XPath = "f:DiagnosticReport/f:codedDiagnosis", Expression = "DiagnosticReport.codedDiagnosis" },
new SearchParamDefinition() { Resource = "DiagnosticReport", Name = "encounter", Description = @"The Encounter when the order was made", Type = SearchParamType.Reference, Path = new string[] { "DiagnosticReport.encounter", }, Target = new ResourceType[] { ResourceType.Encounter, }, XPath = "f:DiagnosticReport/f:encounter", Expression = "DiagnosticReport.encounter" },
new SearchParamDefinition() { Resource = "DiagnosticReport", Name = "identifier", Description = @"An identifier for the report", Type = SearchParamType.Token, Path = new string[] { "DiagnosticReport.identifier", }, XPath = "f:DiagnosticReport/f:identifier", Expression = "DiagnosticReport.identifier" },
new SearchParamDefinition() { Resource = "DiagnosticReport", Name = "image", Description = @"A reference to the image source.", Type = SearchParamType.Reference, Path = new string[] { "DiagnosticReport.image.link", }, Target = new ResourceType[] { ResourceType.Media, }, XPath = "f:DiagnosticReport/f:image/f:link", Expression = "DiagnosticReport.image.link" },
new SearchParamDefinition() { Resource = "DiagnosticReport", Name = "issued", Description = @"When the report was issued", Type = SearchParamType.Date, Path = new string[] { "DiagnosticReport.issued", }, XPath = "f:DiagnosticReport/f:issued", Expression = "DiagnosticReport.issued" },
new SearchParamDefinition() { Resource = "DiagnosticReport", Name = "patient", Description = @"The subject of the report if a patient", Type = SearchParamType.Reference, Path = new string[] { "DiagnosticReport.subject", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:DiagnosticReport/f:subject", Expression = "DiagnosticReport.subject" },
new SearchParamDefinition() { Resource = "DiagnosticReport", Name = "performer", Description = @"Who was the source of the report (organization)", Type = SearchParamType.Reference, Path = new string[] { "DiagnosticReport.performer", }, Target = new ResourceType[] { ResourceType.Organization, ResourceType.Practitioner, }, XPath = "f:DiagnosticReport/f:performer", Expression = "DiagnosticReport.performer" },
new SearchParamDefinition() { Resource = "DiagnosticReport", Name = "request", Description = @"Reference to the test or procedure request.", Type = SearchParamType.Reference, Path = new string[] { "DiagnosticReport.request", }, Target = new ResourceType[] { ResourceType.DiagnosticOrder, ResourceType.ProcedureRequest, ResourceType.ReferralRequest, }, XPath = "f:DiagnosticReport/f:request", Expression = "DiagnosticReport.request" },
new SearchParamDefinition() { Resource = "DiagnosticReport", Name = "result", Description = @"Link to an atomic result (observation resource)", Type = SearchParamType.Reference, Path = new string[] { "DiagnosticReport.result", }, Target = new ResourceType[] { ResourceType.Observation, }, XPath = "f:DiagnosticReport/f:result", Expression = "DiagnosticReport.result" },
new SearchParamDefinition() { Resource = "DiagnosticReport", Name = "specimen", Description = @"The specimen details", Type = SearchParamType.Reference, Path = new string[] { "DiagnosticReport.specimen", }, Target = new ResourceType[] { ResourceType.Specimen, }, XPath = "f:DiagnosticReport/f:specimen", Expression = "DiagnosticReport.specimen" },
new SearchParamDefinition() { Resource = "DiagnosticReport", Name = "status", Description = @"The status of the report", Type = SearchParamType.Token, Path = new string[] { "DiagnosticReport.status", }, XPath = "f:DiagnosticReport/f:status", Expression = "DiagnosticReport.status" },
new SearchParamDefinition() { Resource = "DiagnosticReport", Name = "subject", Description = @"The subject of the report", Type = SearchParamType.Reference, Path = new string[] { "DiagnosticReport.subject", }, Target = new ResourceType[] { ResourceType.Device, ResourceType.Group, ResourceType.Location, ResourceType.Patient, }, XPath = "f:DiagnosticReport/f:subject", Expression = "DiagnosticReport.subject" },
new SearchParamDefinition() { Resource = "DocumentManifest", Name = "author", Description = @"Who and/or what authored the manifest", Type = SearchParamType.Reference, Path = new string[] { "DocumentManifest.author", }, Target = new ResourceType[] { ResourceType.Device, ResourceType.Organization, ResourceType.Patient, ResourceType.Practitioner, ResourceType.RelatedPerson, }, XPath = "f:DocumentManifest/f:author", Expression = "DocumentManifest.author" },
new SearchParamDefinition() { Resource = "DocumentManifest", Name = "content-ref", Description = @"Contents of this set of documents", Type = SearchParamType.Reference, Path = new string[] { "DocumentManifest.content.pReference", }, Target = new ResourceType[] { ResourceType.Account, ResourceType.AllergyIntolerance, ResourceType.Appointment, ResourceType.AppointmentResponse, ResourceType.AuditEvent, ResourceType.Basic, ResourceType.Binary, ResourceType.BodySite, ResourceType.Bundle, ResourceType.CarePlan, ResourceType.Claim, ResourceType.ClaimResponse, ResourceType.ClinicalImpression, ResourceType.Communication, ResourceType.CommunicationRequest, ResourceType.Composition, ResourceType.ConceptMap, ResourceType.Condition, ResourceType.Conformance, ResourceType.Contract, ResourceType.Coverage, ResourceType.DataElement, ResourceType.DetectedIssue, ResourceType.Device, ResourceType.DeviceComponent, ResourceType.DeviceMetric, ResourceType.DeviceUseRequest, ResourceType.DeviceUseStatement, ResourceType.DiagnosticOrder, ResourceType.DiagnosticReport, ResourceType.DocumentManifest, ResourceType.DocumentReference, ResourceType.EligibilityRequest, ResourceType.EligibilityResponse, ResourceType.Encounter, ResourceType.EnrollmentRequest, ResourceType.EnrollmentResponse, ResourceType.EpisodeOfCare, ResourceType.ExplanationOfBenefit, ResourceType.FamilyMemberHistory, ResourceType.Flag, ResourceType.Goal, ResourceType.Group, ResourceType.HealthcareService, ResourceType.ImagingObjectSelection, ResourceType.ImagingStudy, ResourceType.Immunization, ResourceType.ImmunizationRecommendation, ResourceType.ImplementationGuide, ResourceType.List, ResourceType.Location, ResourceType.Media, ResourceType.Medication, ResourceType.MedicationAdministration, ResourceType.MedicationDispense, ResourceType.MedicationOrder, ResourceType.MedicationStatement, ResourceType.MessageHeader, ResourceType.NamingSystem, ResourceType.NutritionOrder, ResourceType.Observation, ResourceType.OperationDefinition, ResourceType.OperationOutcome, ResourceType.Order, ResourceType.OrderResponse, ResourceType.Organization, ResourceType.Patient, ResourceType.PaymentNotice, ResourceType.PaymentReconciliation, ResourceType.Person, ResourceType.Practitioner, ResourceType.Procedure, ResourceType.ProcedureRequest, ResourceType.ProcessRequest, ResourceType.ProcessResponse, ResourceType.Provenance, ResourceType.Questionnaire, ResourceType.QuestionnaireResponse, ResourceType.ReferralRequest, ResourceType.RelatedPerson, ResourceType.RiskAssessment, ResourceType.Schedule, ResourceType.SearchParameter, ResourceType.Slot, ResourceType.Specimen, ResourceType.StructureDefinition, ResourceType.Subscription, ResourceType.Substance, ResourceType.SupplyDelivery, ResourceType.SupplyRequest, ResourceType.TestScript, ResourceType.ValueSet, ResourceType.VisionPrescription, }, XPath = "f:DocumentManifest/f:content/f:pReference", Expression = "DocumentManifest.content.pReference" },
new SearchParamDefinition() { Resource = "DocumentManifest", Name = "created", Description = @"When this document manifest created", Type = SearchParamType.Date, Path = new string[] { "DocumentManifest.created", }, XPath = "f:DocumentManifest/f:created", Expression = "DocumentManifest.created" },
new SearchParamDefinition() { Resource = "DocumentManifest", Name = "description", Description = @"Human-readable description (title)", Type = SearchParamType.String, Path = new string[] { "DocumentManifest.description", }, XPath = "f:DocumentManifest/f:description", Expression = "DocumentManifest.description" },
new SearchParamDefinition() { Resource = "DocumentManifest", Name = "identifier", Description = @"Unique Identifier for the set of documents", Type = SearchParamType.Token, Path = new string[] { "DocumentManifest.masterIdentifier", "DocumentManifest.identifier", }, XPath = "f:DocumentManifest/f:masterIdentifier | f:DocumentManifest/f:identifier", Expression = "DocumentManifest.masterIdentifier | DocumentManifest.identifier" },
new SearchParamDefinition() { Resource = "DocumentManifest", Name = "patient", Description = @"The subject of the set of documents", Type = SearchParamType.Reference, Path = new string[] { "DocumentManifest.subject", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:DocumentManifest/f:subject", Expression = "DocumentManifest.subject" },
new SearchParamDefinition() { Resource = "DocumentManifest", Name = "recipient", Description = @"Intended to get notified about this set of documents", Type = SearchParamType.Reference, Path = new string[] { "DocumentManifest.recipient", }, Target = new ResourceType[] { ResourceType.Organization, ResourceType.Patient, ResourceType.Practitioner, ResourceType.RelatedPerson, }, XPath = "f:DocumentManifest/f:recipient", Expression = "DocumentManifest.recipient" },
new SearchParamDefinition() { Resource = "DocumentManifest", Name = "related-id", Description = @"Identifiers of things that are related", Type = SearchParamType.Token, Path = new string[] { "DocumentManifest.related.identifier", }, XPath = "f:DocumentManifest/f:related/f:identifier", Expression = "DocumentManifest.related.identifier" },
new SearchParamDefinition() { Resource = "DocumentManifest", Name = "related-ref", Description = @"Related Resource", Type = SearchParamType.Reference, Path = new string[] { "DocumentManifest.related.ref", }, Target = new ResourceType[] { ResourceType.Account, ResourceType.AllergyIntolerance, ResourceType.Appointment, ResourceType.AppointmentResponse, ResourceType.AuditEvent, ResourceType.Basic, ResourceType.Binary, ResourceType.BodySite, ResourceType.Bundle, ResourceType.CarePlan, ResourceType.Claim, ResourceType.ClaimResponse, ResourceType.ClinicalImpression, ResourceType.Communication, ResourceType.CommunicationRequest, ResourceType.Composition, ResourceType.ConceptMap, ResourceType.Condition, ResourceType.Conformance, ResourceType.Contract, ResourceType.Coverage, ResourceType.DataElement, ResourceType.DetectedIssue, ResourceType.Device, ResourceType.DeviceComponent, ResourceType.DeviceMetric, ResourceType.DeviceUseRequest, ResourceType.DeviceUseStatement, ResourceType.DiagnosticOrder, ResourceType.DiagnosticReport, ResourceType.DocumentManifest, ResourceType.DocumentReference, ResourceType.EligibilityRequest, ResourceType.EligibilityResponse, ResourceType.Encounter, ResourceType.EnrollmentRequest, ResourceType.EnrollmentResponse, ResourceType.EpisodeOfCare, ResourceType.ExplanationOfBenefit, ResourceType.FamilyMemberHistory, ResourceType.Flag, ResourceType.Goal, ResourceType.Group, ResourceType.HealthcareService, ResourceType.ImagingObjectSelection, ResourceType.ImagingStudy, ResourceType.Immunization, ResourceType.ImmunizationRecommendation, ResourceType.ImplementationGuide, ResourceType.List, ResourceType.Location, ResourceType.Media, ResourceType.Medication, ResourceType.MedicationAdministration, ResourceType.MedicationDispense, ResourceType.MedicationOrder, ResourceType.MedicationStatement, ResourceType.MessageHeader, ResourceType.NamingSystem, ResourceType.NutritionOrder, ResourceType.Observation, ResourceType.OperationDefinition, ResourceType.OperationOutcome, ResourceType.Order, ResourceType.OrderResponse, ResourceType.Organization, ResourceType.Patient, ResourceType.PaymentNotice, ResourceType.PaymentReconciliation, ResourceType.Person, ResourceType.Practitioner, ResourceType.Procedure, ResourceType.ProcedureRequest, ResourceType.ProcessRequest, ResourceType.ProcessResponse, ResourceType.Provenance, ResourceType.Questionnaire, ResourceType.QuestionnaireResponse, ResourceType.ReferralRequest, ResourceType.RelatedPerson, ResourceType.RiskAssessment, ResourceType.Schedule, ResourceType.SearchParameter, ResourceType.Slot, ResourceType.Specimen, ResourceType.StructureDefinition, ResourceType.Subscription, ResourceType.Substance, ResourceType.SupplyDelivery, ResourceType.SupplyRequest, ResourceType.TestScript, ResourceType.ValueSet, ResourceType.VisionPrescription, }, XPath = "f:DocumentManifest/f:related/f:ref", Expression = "DocumentManifest.related.ref" },
new SearchParamDefinition() { Resource = "DocumentManifest", Name = "source", Description = @"The source system/application/software", Type = SearchParamType.Uri, Path = new string[] { "DocumentManifest.source", }, XPath = "f:DocumentManifest/f:source", Expression = "DocumentManifest.source" },
new SearchParamDefinition() { Resource = "DocumentManifest", Name = "status", Description = @"current | superseded | entered-in-error", Type = SearchParamType.Token, Path = new string[] { "DocumentManifest.status", }, XPath = "f:DocumentManifest/f:status", Expression = "DocumentManifest.status" },
new SearchParamDefinition() { Resource = "DocumentManifest", Name = "subject", Description = @"The subject of the set of documents", Type = SearchParamType.Reference, Path = new string[] { "DocumentManifest.subject", }, Target = new ResourceType[] { ResourceType.Device, ResourceType.Group, ResourceType.Patient, ResourceType.Practitioner, }, XPath = "f:DocumentManifest/f:subject", Expression = "DocumentManifest.subject" },
new SearchParamDefinition() { Resource = "DocumentManifest", Name = "type", Description = @"Kind of document set", Type = SearchParamType.Token, Path = new string[] { "DocumentManifest.type", }, XPath = "f:DocumentManifest/f:type", Expression = "DocumentManifest.type" },
new SearchParamDefinition() { Resource = "DocumentReference", Name = "authenticator", Description = @"Who/what authenticated the document", Type = SearchParamType.Reference, Path = new string[] { "DocumentReference.authenticator", }, Target = new ResourceType[] { ResourceType.Organization, ResourceType.Practitioner, }, XPath = "f:DocumentReference/f:authenticator", Expression = "DocumentReference.authenticator" },
new SearchParamDefinition() { Resource = "DocumentReference", Name = "author", Description = @"Who and/or what authored the document", Type = SearchParamType.Reference, Path = new string[] { "DocumentReference.author", }, Target = new ResourceType[] { ResourceType.Device, ResourceType.Organization, ResourceType.Patient, ResourceType.Practitioner, ResourceType.RelatedPerson, }, XPath = "f:DocumentReference/f:author", Expression = "DocumentReference.author" },
new SearchParamDefinition() { Resource = "DocumentReference", Name = "class", Description = @"Categorization of document", Type = SearchParamType.Token, Path = new string[] { "DocumentReference.class", }, XPath = "f:DocumentReference/f:class", Expression = "DocumentReference.class" },
new SearchParamDefinition() { Resource = "DocumentReference", Name = "created", Description = @"Document creation time", Type = SearchParamType.Date, Path = new string[] { "DocumentReference.created", }, XPath = "f:DocumentReference/f:created", Expression = "DocumentReference.created" },
new SearchParamDefinition() { Resource = "DocumentReference", Name = "custodian", Description = @"Organization which maintains the document", Type = SearchParamType.Reference, Path = new string[] { "DocumentReference.custodian", }, Target = new ResourceType[] { ResourceType.Organization, }, XPath = "f:DocumentReference/f:custodian", Expression = "DocumentReference.custodian" },
new SearchParamDefinition() { Resource = "DocumentReference", Name = "description", Description = @"Human-readable description (title)", Type = SearchParamType.String, Path = new string[] { "DocumentReference.description", }, XPath = "f:DocumentReference/f:description", Expression = "DocumentReference.description" },
new SearchParamDefinition() { Resource = "DocumentReference", Name = "encounter", Description = @"Context of the document content", Type = SearchParamType.Reference, Path = new string[] { "DocumentReference.context.encounter", }, Target = new ResourceType[] { ResourceType.Encounter, }, XPath = "f:DocumentReference/f:context/f:encounter", Expression = "DocumentReference.context.encounter" },
new SearchParamDefinition() { Resource = "DocumentReference", Name = "event", Description = @"Main Clinical Acts Documented", Type = SearchParamType.Token, Path = new string[] { "DocumentReference.context.event", }, XPath = "f:DocumentReference/f:context/f:event", Expression = "DocumentReference.context.event" },
new SearchParamDefinition() { Resource = "DocumentReference", Name = "facility", Description = @"Kind of facility where patient was seen", Type = SearchParamType.Token, Path = new string[] { "DocumentReference.context.facilityType", }, XPath = "f:DocumentReference/f:context/f:facilityType", Expression = "DocumentReference.context.facilityType" },
new SearchParamDefinition() { Resource = "DocumentReference", Name = "format", Description = @"Format/content rules for the document", Type = SearchParamType.Token, Path = new string[] { "DocumentReference.content.format", }, XPath = "f:DocumentReference/f:content/f:format", Expression = "DocumentReference.content.format" },
new SearchParamDefinition() { Resource = "DocumentReference", Name = "identifier", Description = @"Master Version Specific Identifier", Type = SearchParamType.Token, Path = new string[] { "DocumentReference.masterIdentifier", "DocumentReference.identifier", }, XPath = "f:DocumentReference/f:masterIdentifier | f:DocumentReference/f:identifier", Expression = "DocumentReference.masterIdentifier | DocumentReference.identifier" },
new SearchParamDefinition() { Resource = "DocumentReference", Name = "indexed", Description = @"When this document reference created", Type = SearchParamType.Date, Path = new string[] { "DocumentReference.indexed", }, XPath = "f:DocumentReference/f:indexed", Expression = "DocumentReference.indexed" },
new SearchParamDefinition() { Resource = "DocumentReference", Name = "language", Description = @"Human language of the content (BCP-47)", Type = SearchParamType.Token, Path = new string[] { "DocumentReference.content.attachment.language", }, XPath = "f:DocumentReference/f:content/f:attachment/f:language", Expression = "DocumentReference.content.attachment.language" },
new SearchParamDefinition() { Resource = "DocumentReference", Name = "location", Description = @"Uri where the data can be found", Type = SearchParamType.Uri, Path = new string[] { "DocumentReference.content.attachment.url", }, XPath = "f:DocumentReference/f:content/f:attachment/f:url", Expression = "DocumentReference.content.attachment.url" },
new SearchParamDefinition() { Resource = "DocumentReference", Name = "patient", Description = @"Who/what is the subject of the document", Type = SearchParamType.Reference, Path = new string[] { "DocumentReference.subject", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:DocumentReference/f:subject", Expression = "DocumentReference.subject" },
new SearchParamDefinition() { Resource = "DocumentReference", Name = "period", Description = @"Time of service that is being documented", Type = SearchParamType.Date, Path = new string[] { "DocumentReference.context.period", }, XPath = "f:DocumentReference/f:context/f:period", Expression = "DocumentReference.context.period" },
new SearchParamDefinition() { Resource = "DocumentReference", Name = "related-id", Description = @"Identifier of related objects or events", Type = SearchParamType.Token, Path = new string[] { "DocumentReference.context.related.identifier", }, XPath = "f:DocumentReference/f:context/f:related/f:identifier", Expression = "DocumentReference.context.related.identifier" },
new SearchParamDefinition() { Resource = "DocumentReference", Name = "related-ref", Description = @"Related Resource", Type = SearchParamType.Reference, Path = new string[] { "DocumentReference.context.related.ref", }, Target = new ResourceType[] { ResourceType.Account, ResourceType.AllergyIntolerance, ResourceType.Appointment, ResourceType.AppointmentResponse, ResourceType.AuditEvent, ResourceType.Basic, ResourceType.Binary, ResourceType.BodySite, ResourceType.Bundle, ResourceType.CarePlan, ResourceType.Claim, ResourceType.ClaimResponse, ResourceType.ClinicalImpression, ResourceType.Communication, ResourceType.CommunicationRequest, ResourceType.Composition, ResourceType.ConceptMap, ResourceType.Condition, ResourceType.Conformance, ResourceType.Contract, ResourceType.Coverage, ResourceType.DataElement, ResourceType.DetectedIssue, ResourceType.Device, ResourceType.DeviceComponent, ResourceType.DeviceMetric, ResourceType.DeviceUseRequest, ResourceType.DeviceUseStatement, ResourceType.DiagnosticOrder, ResourceType.DiagnosticReport, ResourceType.DocumentManifest, ResourceType.DocumentReference, ResourceType.EligibilityRequest, ResourceType.EligibilityResponse, ResourceType.Encounter, ResourceType.EnrollmentRequest, ResourceType.EnrollmentResponse, ResourceType.EpisodeOfCare, ResourceType.ExplanationOfBenefit, ResourceType.FamilyMemberHistory, ResourceType.Flag, ResourceType.Goal, ResourceType.Group, ResourceType.HealthcareService, ResourceType.ImagingObjectSelection, ResourceType.ImagingStudy, ResourceType.Immunization, ResourceType.ImmunizationRecommendation, ResourceType.ImplementationGuide, ResourceType.List, ResourceType.Location, ResourceType.Media, ResourceType.Medication, ResourceType.MedicationAdministration, ResourceType.MedicationDispense, ResourceType.MedicationOrder, ResourceType.MedicationStatement, ResourceType.MessageHeader, ResourceType.NamingSystem, ResourceType.NutritionOrder, ResourceType.Observation, ResourceType.OperationDefinition, ResourceType.OperationOutcome, ResourceType.Order, ResourceType.OrderResponse, ResourceType.Organization, ResourceType.Patient, ResourceType.PaymentNotice, ResourceType.PaymentReconciliation, ResourceType.Person, ResourceType.Practitioner, ResourceType.Procedure, ResourceType.ProcedureRequest, ResourceType.ProcessRequest, ResourceType.ProcessResponse, ResourceType.Provenance, ResourceType.Questionnaire, ResourceType.QuestionnaireResponse, ResourceType.ReferralRequest, ResourceType.RelatedPerson, ResourceType.RiskAssessment, ResourceType.Schedule, ResourceType.SearchParameter, ResourceType.Slot, ResourceType.Specimen, ResourceType.StructureDefinition, ResourceType.Subscription, ResourceType.Substance, ResourceType.SupplyDelivery, ResourceType.SupplyRequest, ResourceType.TestScript, ResourceType.ValueSet, ResourceType.VisionPrescription, }, XPath = "f:DocumentReference/f:context/f:related/f:ref", Expression = "DocumentReference.context.related.ref" },
new SearchParamDefinition() { Resource = "DocumentReference", Name = "relatesto", Description = @"Target of the relationship", Type = SearchParamType.Reference, Path = new string[] { "DocumentReference.relatesTo.target", }, Target = new ResourceType[] { ResourceType.DocumentReference, }, XPath = "f:DocumentReference/f:relatesTo/f:target", Expression = "DocumentReference.relatesTo.target" },
new SearchParamDefinition() { Resource = "DocumentReference", Name = "relation", Description = @"replaces | transforms | signs | appends", Type = SearchParamType.Token, Path = new string[] { "DocumentReference.relatesTo.code", }, XPath = "f:DocumentReference/f:relatesTo/f:code", Expression = "DocumentReference.relatesTo.code" },
new SearchParamDefinition() { Resource = "DocumentReference", Name = "relationship", Description = @"Combination of relation and relatesTo", Type = SearchParamType.Composite, Path = new string[] { } },
new SearchParamDefinition() { Resource = "DocumentReference", Name = "securitylabel", Description = @"Document security-tags", Type = SearchParamType.Token, Path = new string[] { "DocumentReference.securityLabel", }, XPath = "f:DocumentReference/f:securityLabel", Expression = "DocumentReference.securityLabel" },
new SearchParamDefinition() { Resource = "DocumentReference", Name = "setting", Description = @"Additional details about where the content was created (e.g. clinical specialty)", Type = SearchParamType.Token, Path = new string[] { "DocumentReference.context.practiceSetting", }, XPath = "f:DocumentReference/f:context/f:practiceSetting", Expression = "DocumentReference.context.practiceSetting" },
new SearchParamDefinition() { Resource = "DocumentReference", Name = "status", Description = @"current | superseded | entered-in-error", Type = SearchParamType.Token, Path = new string[] { "DocumentReference.status", }, XPath = "f:DocumentReference/f:status", Expression = "DocumentReference.status" },
new SearchParamDefinition() { Resource = "DocumentReference", Name = "subject", Description = @"Who/what is the subject of the document", Type = SearchParamType.Reference, Path = new string[] { "DocumentReference.subject", }, Target = new ResourceType[] { ResourceType.Device, ResourceType.Group, ResourceType.Patient, ResourceType.Practitioner, }, XPath = "f:DocumentReference/f:subject", Expression = "DocumentReference.subject" },
new SearchParamDefinition() { Resource = "DocumentReference", Name = "type", Description = @"Kind of document (LOINC if possible)", Type = SearchParamType.Token, Path = new string[] { "DocumentReference.type", }, XPath = "f:DocumentReference/f:type", Expression = "DocumentReference.type" },
new SearchParamDefinition() { Resource = "EligibilityRequest", Name = "identifier", Description = @"The business identifier of the Eligibility", Type = SearchParamType.Token, Path = new string[] { "EligibilityRequest.identifier", }, XPath = "f:EligibilityRequest/f:identifier", Expression = "EligibilityRequest.identifier" },
new SearchParamDefinition() { Resource = "EligibilityResponse", Name = "identifier", Description = @"The business identifier of the Explanation of Benefit", Type = SearchParamType.Token, Path = new string[] { "EligibilityResponse.identifier", }, XPath = "f:EligibilityResponse/f:identifier", Expression = "EligibilityResponse.identifier" },
new SearchParamDefinition() { Resource = "Encounter", Name = "appointment", Description = @"The appointment that scheduled this encounter", Type = SearchParamType.Reference, Path = new string[] { "Encounter.appointment", }, Target = new ResourceType[] { ResourceType.Appointment, }, XPath = "f:Encounter/f:appointment", Expression = "Encounter.appointment" },
new SearchParamDefinition() { Resource = "Encounter", Name = "condition", Description = @"Reason the encounter takes place (resource)", Type = SearchParamType.Reference, Path = new string[] { "Encounter.indication", }, Target = new ResourceType[] { ResourceType.Condition, }, XPath = "f:Encounter/f:indication", Expression = "Encounter.indication" },
new SearchParamDefinition() { Resource = "Encounter", Name = "date", Description = @"A date within the period the Encounter lasted", Type = SearchParamType.Date, Path = new string[] { "Encounter.period", }, XPath = "f:Encounter/f:period", Expression = "Encounter.period" },
new SearchParamDefinition() { Resource = "Encounter", Name = "episodeofcare", Description = @"Episode(s) of care that this encounter should be recorded against", Type = SearchParamType.Reference, Path = new string[] { "Encounter.episodeOfCare", }, Target = new ResourceType[] { ResourceType.EpisodeOfCare, }, XPath = "f:Encounter/f:episodeOfCare", Expression = "Encounter.episodeOfCare" },
new SearchParamDefinition() { Resource = "Encounter", Name = "identifier", Description = @"Identifier(s) by which this encounter is known", Type = SearchParamType.Token, Path = new string[] { "Encounter.identifier", }, XPath = "f:Encounter/f:identifier", Expression = "Encounter.identifier" },
new SearchParamDefinition() { Resource = "Encounter", Name = "incomingreferral", Description = @"The ReferralRequest that initiated this encounter", Type = SearchParamType.Reference, Path = new string[] { "Encounter.incomingReferral", }, Target = new ResourceType[] { ResourceType.ReferralRequest, }, XPath = "f:Encounter/f:incomingReferral", Expression = "Encounter.incomingReferral" },
new SearchParamDefinition() { Resource = "Encounter", Name = "indication", Description = @"Reason the encounter takes place (resource)", Type = SearchParamType.Reference, Path = new string[] { "Encounter.indication", }, Target = new ResourceType[] { ResourceType.Condition, ResourceType.Procedure, }, XPath = "f:Encounter/f:indication", Expression = "Encounter.indication" },
new SearchParamDefinition() { Resource = "Encounter", Name = "length", Description = @"Length of encounter in days", Type = SearchParamType.Number, Path = new string[] { "Encounter.length", }, XPath = "f:Encounter/f:length", Expression = "Encounter.length" },
new SearchParamDefinition() { Resource = "Encounter", Name = "location", Description = @"Location the encounter takes place", Type = SearchParamType.Reference, Path = new string[] { "Encounter.location.location", }, Target = new ResourceType[] { ResourceType.Location, }, XPath = "f:Encounter/f:location/f:location", Expression = "Encounter.location.location" },
new SearchParamDefinition() { Resource = "Encounter", Name = "location-period", Description = @"Time period during which the patient was present at the location", Type = SearchParamType.Date, Path = new string[] { "Encounter.location.period", }, XPath = "f:Encounter/f:location/f:period", Expression = "Encounter.location.period" },
new SearchParamDefinition() { Resource = "Encounter", Name = "part-of", Description = @"Another Encounter this encounter is part of", Type = SearchParamType.Reference, Path = new string[] { "Encounter.partOf", }, Target = new ResourceType[] { ResourceType.Encounter, }, XPath = "f:Encounter/f:partOf", Expression = "Encounter.partOf" },
new SearchParamDefinition() { Resource = "Encounter", Name = "participant", Description = @"Persons involved in the encounter other than the patient", Type = SearchParamType.Reference, Path = new string[] { "Encounter.participant.individual", }, Target = new ResourceType[] { ResourceType.Practitioner, ResourceType.RelatedPerson, }, XPath = "f:Encounter/f:participant/f:individual", Expression = "Encounter.participant.individual" },
new SearchParamDefinition() { Resource = "Encounter", Name = "participant-type", Description = @"Role of participant in encounter", Type = SearchParamType.Token, Path = new string[] { "Encounter.participant.type", }, XPath = "f:Encounter/f:participant/f:type", Expression = "Encounter.participant.type" },
new SearchParamDefinition() { Resource = "Encounter", Name = "patient", Description = @"The patient present at the encounter", Type = SearchParamType.Reference, Path = new string[] { "Encounter.patient", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:Encounter/f:patient", Expression = "Encounter.patient" },
new SearchParamDefinition() { Resource = "Encounter", Name = "practitioner", Description = @"Persons involved in the encounter other than the patient", Type = SearchParamType.Reference, Path = new string[] { "Encounter.participant.individual", }, Target = new ResourceType[] { ResourceType.Practitioner, }, XPath = "f:Encounter/f:participant/f:individual", Expression = "Encounter.participant.individual" },
new SearchParamDefinition() { Resource = "Encounter", Name = "procedure", Description = @"Reason the encounter takes place (resource)", Type = SearchParamType.Reference, Path = new string[] { "Encounter.indication", }, Target = new ResourceType[] { ResourceType.Procedure, }, XPath = "f:Encounter/f:indication", Expression = "Encounter.indication" },
new SearchParamDefinition() { Resource = "Encounter", Name = "reason", Description = @"Reason the encounter takes place (code)", Type = SearchParamType.Token, Path = new string[] { "Encounter.reason", }, XPath = "f:Encounter/f:reason", Expression = "Encounter.reason" },
new SearchParamDefinition() { Resource = "Encounter", Name = "special-arrangement", Description = @"Wheelchair, translator, stretcher, etc.", Type = SearchParamType.Token, Path = new string[] { "Encounter.hospitalization.specialArrangement", }, XPath = "f:Encounter/f:hospitalization/f:specialArrangement", Expression = "Encounter.hospitalization.specialArrangement" },
new SearchParamDefinition() { Resource = "Encounter", Name = "status", Description = @"planned | arrived | in-progress | onleave | finished | cancelled", Type = SearchParamType.Token, Path = new string[] { "Encounter.status", }, XPath = "f:Encounter/f:status", Expression = "Encounter.status" },
new SearchParamDefinition() { Resource = "Encounter", Name = "type", Description = @"Specific type of encounter", Type = SearchParamType.Token, Path = new string[] { "Encounter.type", }, XPath = "f:Encounter/f:type", Expression = "Encounter.type" },
new SearchParamDefinition() { Resource = "EnrollmentRequest", Name = "identifier", Description = @"The business identifier of the Enrollment", Type = SearchParamType.Token, Path = new string[] { "EnrollmentRequest.identifier", }, XPath = "f:EnrollmentRequest/f:identifier", Expression = "EnrollmentRequest.identifier" },
new SearchParamDefinition() { Resource = "EnrollmentRequest", Name = "patient", Description = @"The party to be enrolled", Type = SearchParamType.Reference, Path = new string[] { "EnrollmentRequest.subject", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:EnrollmentRequest/f:subject", Expression = "EnrollmentRequest.subject" },
new SearchParamDefinition() { Resource = "EnrollmentRequest", Name = "subject", Description = @"The party to be enrolled", Type = SearchParamType.Reference, Path = new string[] { "EnrollmentRequest.subject", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:EnrollmentRequest/f:subject", Expression = "EnrollmentRequest.subject" },
new SearchParamDefinition() { Resource = "EnrollmentResponse", Name = "identifier", Description = @"The business identifier of the Explanation of Benefit", Type = SearchParamType.Token, Path = new string[] { "EnrollmentResponse.identifier", }, XPath = "f:EnrollmentResponse/f:identifier", Expression = "EnrollmentResponse.identifier" },
new SearchParamDefinition() { Resource = "EpisodeOfCare", Name = "care-manager", Description = @"Care manager/care co-ordinator for the patient", Type = SearchParamType.Reference, Path = new string[] { "EpisodeOfCare.careManager", }, Target = new ResourceType[] { ResourceType.Practitioner, }, XPath = "f:EpisodeOfCare/f:careManager", Expression = "EpisodeOfCare.careManager" },
new SearchParamDefinition() { Resource = "EpisodeOfCare", Name = "condition", Description = @"Conditions/problems/diagnoses this episode of care is for", Type = SearchParamType.Reference, Path = new string[] { "EpisodeOfCare.condition", }, Target = new ResourceType[] { ResourceType.Condition, }, XPath = "f:EpisodeOfCare/f:condition", Expression = "EpisodeOfCare.condition" },
new SearchParamDefinition() { Resource = "EpisodeOfCare", Name = "date", Description = @"The provided date search value falls within the episode of care's period", Type = SearchParamType.Date, Path = new string[] { "EpisodeOfCare.period", }, XPath = "f:EpisodeOfCare/f:period", Expression = "EpisodeOfCare.period" },
new SearchParamDefinition() { Resource = "EpisodeOfCare", Name = "identifier", Description = @"Identifier(s) for the EpisodeOfCare", Type = SearchParamType.Token, Path = new string[] { "EpisodeOfCare.identifier", }, XPath = "f:EpisodeOfCare/f:identifier", Expression = "EpisodeOfCare.identifier" },
new SearchParamDefinition() { Resource = "EpisodeOfCare", Name = "incomingreferral", Description = @"Incoming Referral Request", Type = SearchParamType.Reference, Path = new string[] { "EpisodeOfCare.referralRequest", }, Target = new ResourceType[] { ResourceType.ReferralRequest, }, XPath = "f:EpisodeOfCare/f:referralRequest", Expression = "EpisodeOfCare.referralRequest" },
new SearchParamDefinition() { Resource = "EpisodeOfCare", Name = "organization", Description = @"The organization that has assumed the specific responsibilities of this EpisodeOfCare", Type = SearchParamType.Reference, Path = new string[] { "EpisodeOfCare.managingOrganization", }, Target = new ResourceType[] { ResourceType.Organization, }, XPath = "f:EpisodeOfCare/f:managingOrganization", Expression = "EpisodeOfCare.managingOrganization" },
new SearchParamDefinition() { Resource = "EpisodeOfCare", Name = "patient", Description = @"Patient for this episode of care", Type = SearchParamType.Reference, Path = new string[] { "EpisodeOfCare.patient", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:EpisodeOfCare/f:patient", Expression = "EpisodeOfCare.patient" },
new SearchParamDefinition() { Resource = "EpisodeOfCare", Name = "status", Description = @"The current status of the Episode of Care as provided (does not check the status history collection)", Type = SearchParamType.Token, Path = new string[] { "EpisodeOfCare.status", }, XPath = "f:EpisodeOfCare/f:status", Expression = "EpisodeOfCare.status" },
new SearchParamDefinition() { Resource = "EpisodeOfCare", Name = "team-member", Description = @"A Practitioner or Organization allocated to the care team for this EpisodeOfCare", Type = SearchParamType.Reference, Path = new string[] { "EpisodeOfCare.careTeam.member", }, Target = new ResourceType[] { ResourceType.Organization, ResourceType.Practitioner, }, XPath = "f:EpisodeOfCare/f:careTeam/f:member", Expression = "EpisodeOfCare.careTeam.member" },
new SearchParamDefinition() { Resource = "EpisodeOfCare", Name = "type", Description = @"Type/class - e.g. specialist referral, disease management", Type = SearchParamType.Token, Path = new string[] { "EpisodeOfCare.type", }, XPath = "f:EpisodeOfCare/f:type", Expression = "EpisodeOfCare.type" },
new SearchParamDefinition() { Resource = "ExplanationOfBenefit", Name = "identifier", Description = @"The business identifier of the Explanation of Benefit", Type = SearchParamType.Token, Path = new string[] { "ExplanationOfBenefit.identifier", }, XPath = "f:ExplanationOfBenefit/f:identifier", Expression = "ExplanationOfBenefit.identifier" },
new SearchParamDefinition() { Resource = "FamilyMemberHistory", Name = "code", Description = @"A search by a condition code", Type = SearchParamType.Token, Path = new string[] { "FamilyMemberHistory.condition.code", }, XPath = "f:FamilyMemberHistory/f:condition/f:code", Expression = "FamilyMemberHistory.condition.code" },
new SearchParamDefinition() { Resource = "FamilyMemberHistory", Name = "date", Description = @"When history was captured/updated", Type = SearchParamType.Date, Path = new string[] { "FamilyMemberHistory.date", }, XPath = "f:FamilyMemberHistory/f:date", Expression = "FamilyMemberHistory.date" },
new SearchParamDefinition() { Resource = "FamilyMemberHistory", Name = "gender", Description = @"A search by a gender code of a family member", Type = SearchParamType.Token, Path = new string[] { "FamilyMemberHistory.gender", }, XPath = "f:FamilyMemberHistory/f:gender", Expression = "FamilyMemberHistory.gender" },
new SearchParamDefinition() { Resource = "FamilyMemberHistory", Name = "identifier", Description = @"A search by a record identifier", Type = SearchParamType.Token, Path = new string[] { "FamilyMemberHistory.identifier", }, XPath = "f:FamilyMemberHistory/f:identifier", Expression = "FamilyMemberHistory.identifier" },
new SearchParamDefinition() { Resource = "FamilyMemberHistory", Name = "patient", Description = @"The identity of a subject to list family member history items for", Type = SearchParamType.Reference, Path = new string[] { "FamilyMemberHistory.patient", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:FamilyMemberHistory/f:patient", Expression = "FamilyMemberHistory.patient" },
new SearchParamDefinition() { Resource = "FamilyMemberHistory", Name = "relationship", Description = @"A search by a relationship type", Type = SearchParamType.Token, Path = new string[] { "FamilyMemberHistory.relationship", }, XPath = "f:FamilyMemberHistory/f:relationship", Expression = "FamilyMemberHistory.relationship" },
new SearchParamDefinition() { Resource = "FamilyMemberHistory", Name = "condition", Description = @"Search for a history of a particular condition within a patient's family.", Type = SearchParamType.Token, Path = new string[] { } },
new SearchParamDefinition() { Resource = "FamilyMemberHistory", Name = "relationship", Description = @"Search for family history of members based on relationship", Type = SearchParamType.Token, Path = new string[] { } },
new SearchParamDefinition() { Resource = "Flag", Name = "author", Description = @"Flag creator", Type = SearchParamType.Reference, Path = new string[] { "Flag.author", }, Target = new ResourceType[] { ResourceType.Device, ResourceType.Organization, ResourceType.Patient, ResourceType.Practitioner, }, XPath = "f:Flag/f:author", Expression = "Flag.author" },
new SearchParamDefinition() { Resource = "Flag", Name = "date", Description = @"Time period when flag is active", Type = SearchParamType.Date, Path = new string[] { "Flag.period", }, XPath = "f:Flag/f:period", Expression = "Flag.period" },
new SearchParamDefinition() { Resource = "Flag", Name = "encounter", Description = @"Alert relevant during encounter", Type = SearchParamType.Reference, Path = new string[] { "Flag.encounter", }, Target = new ResourceType[] { ResourceType.Encounter, }, XPath = "f:Flag/f:encounter", Expression = "Flag.encounter" },
new SearchParamDefinition() { Resource = "Flag", Name = "patient", Description = @"The identity of a subject to list flags for", Type = SearchParamType.Reference, Path = new string[] { "Flag.subject", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:Flag/f:subject", Expression = "Flag.subject" },
new SearchParamDefinition() { Resource = "Flag", Name = "subject", Description = @"The identity of a subject to list flags for", Type = SearchParamType.Reference, Path = new string[] { "Flag.subject", }, Target = new ResourceType[] { ResourceType.Group, ResourceType.Location, ResourceType.Organization, ResourceType.Patient, ResourceType.Practitioner, }, XPath = "f:Flag/f:subject", Expression = "Flag.subject" },
new SearchParamDefinition() { Resource = "Goal", Name = "category", Description = @"E.g. Treatment, dietary, behavioral, etc.", Type = SearchParamType.Token, Path = new string[] { "Goal.category", }, XPath = "f:Goal/f:category", Expression = "Goal.category" },
new SearchParamDefinition() { Resource = "Goal", Name = "identifier", Description = @"External Ids for this goal", Type = SearchParamType.Token, Path = new string[] { "Goal.identifier", }, XPath = "f:Goal/f:identifier", Expression = "Goal.identifier" },
new SearchParamDefinition() { Resource = "Goal", Name = "patient", Description = @"Who this goal is intended for", Type = SearchParamType.Reference, Path = new string[] { "Goal.subject", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:Goal/f:subject", Expression = "Goal.subject" },
new SearchParamDefinition() { Resource = "Goal", Name = "status", Description = @"proposed | planned | accepted | rejected | in-progress | achieved | sustaining | on-hold | cancelled", Type = SearchParamType.Token, Path = new string[] { "Goal.status", }, XPath = "f:Goal/f:status", Expression = "Goal.status" },
new SearchParamDefinition() { Resource = "Goal", Name = "subject", Description = @"Who this goal is intended for", Type = SearchParamType.Reference, Path = new string[] { "Goal.subject", }, Target = new ResourceType[] { ResourceType.Group, ResourceType.Organization, ResourceType.Patient, }, XPath = "f:Goal/f:subject", Expression = "Goal.subject" },
new SearchParamDefinition() { Resource = "Goal", Name = "targetdate", Description = @"Reach goal on or before", Type = SearchParamType.Date, Path = new string[] { "Goal.targetDate", }, XPath = "f:Goal/f:targetDate", Expression = "Goal.targetDate" },
new SearchParamDefinition() { Resource = "Group", Name = "actual", Description = @"Descriptive or actual", Type = SearchParamType.Token, Path = new string[] { "Group.actual", }, XPath = "f:Group/f:actual", Expression = "Group.actual" },
new SearchParamDefinition() { Resource = "Group", Name = "characteristic", Description = @"Kind of characteristic", Type = SearchParamType.Token, Path = new string[] { "Group.characteristic.code", }, XPath = "f:Group/f:characteristic/f:code", Expression = "Group.characteristic.code" },
new SearchParamDefinition() { Resource = "Group", Name = "characteristic-value", Description = @"A composite of both characteristic and value", Type = SearchParamType.Composite, Path = new string[] { } },
new SearchParamDefinition() { Resource = "Group", Name = "code", Description = @"The kind of resources contained", Type = SearchParamType.Token, Path = new string[] { "Group.code", }, XPath = "f:Group/f:code", Expression = "Group.code" },
new SearchParamDefinition() { Resource = "Group", Name = "exclude", Description = @"Group includes or excludes", Type = SearchParamType.Token, Path = new string[] { "Group.characteristic.exclude", }, XPath = "f:Group/f:characteristic/f:exclude", Expression = "Group.characteristic.exclude" },
new SearchParamDefinition() { Resource = "Group", Name = "identifier", Description = @"Unique id", Type = SearchParamType.Token, Path = new string[] { "Group.identifier", }, XPath = "f:Group/f:identifier", Expression = "Group.identifier" },
new SearchParamDefinition() { Resource = "Group", Name = "member", Description = @"Reference to the group member", Type = SearchParamType.Reference, Path = new string[] { "Group.member.entity", }, Target = new ResourceType[] { ResourceType.Device, ResourceType.Medication, ResourceType.Patient, ResourceType.Practitioner, ResourceType.Substance, }, XPath = "f:Group/f:member/f:entity", Expression = "Group.member.entity" },
new SearchParamDefinition() { Resource = "Group", Name = "type", Description = @"The type of resources the group contains", Type = SearchParamType.Token, Path = new string[] { "Group.type", }, XPath = "f:Group/f:type", Expression = "Group.type" },
new SearchParamDefinition() { Resource = "Group", Name = "value", Description = @"Value held by characteristic", Type = SearchParamType.Token, Path = new string[] { "Group.characteristic.valueCodeableConcept", "Group.characteristic.valueBoolean", "Group.characteristic.valueQuantity", "Group.characteristic.valueRange", }, XPath = "f:Group/f:characteristic/f:valueCodeableConcept | f:Group/f:characteristic/f:valueBoolean | f:Group/f:characteristic/f:valueQuantity | f:Group/f:characteristic/f:valueRange", Expression = "Group.characteristic.value[x]" },
new SearchParamDefinition() { Resource = "HealthcareService", Name = "characteristic", Description = @"One of the HealthcareService's characteristics", Type = SearchParamType.Token, Path = new string[] { "HealthcareService.characteristic", }, XPath = "f:HealthcareService/f:characteristic", Expression = "HealthcareService.characteristic" },
new SearchParamDefinition() { Resource = "HealthcareService", Name = "identifier", Description = @"External identifiers for this item", Type = SearchParamType.Token, Path = new string[] { "HealthcareService.identifier", }, XPath = "f:HealthcareService/f:identifier", Expression = "HealthcareService.identifier" },
new SearchParamDefinition() { Resource = "HealthcareService", Name = "location", Description = @"The location of the Healthcare Service", Type = SearchParamType.Reference, Path = new string[] { "HealthcareService.location", }, Target = new ResourceType[] { ResourceType.Location, }, XPath = "f:HealthcareService/f:location", Expression = "HealthcareService.location" },
new SearchParamDefinition() { Resource = "HealthcareService", Name = "name", Description = @"A portion of the Healthcare service name", Type = SearchParamType.String, Path = new string[] { "HealthcareService.serviceName", }, XPath = "f:HealthcareService/f:serviceName", Expression = "HealthcareService.serviceName" },
new SearchParamDefinition() { Resource = "HealthcareService", Name = "organization", Description = @"The organization that provides this Healthcare Service", Type = SearchParamType.Reference, Path = new string[] { "HealthcareService.providedBy", }, Target = new ResourceType[] { ResourceType.Organization, }, XPath = "f:HealthcareService/f:providedBy", Expression = "HealthcareService.providedBy" },
new SearchParamDefinition() { Resource = "HealthcareService", Name = "programname", Description = @"One of the Program Names serviced by this HealthcareService", Type = SearchParamType.String, Path = new string[] { "HealthcareService.programName", }, XPath = "f:HealthcareService/f:programName", Expression = "HealthcareService.programName" },
new SearchParamDefinition() { Resource = "HealthcareService", Name = "servicecategory", Description = @"Service Category of the Healthcare Service", Type = SearchParamType.Token, Path = new string[] { "HealthcareService.serviceCategory", }, XPath = "f:HealthcareService/f:serviceCategory", Expression = "HealthcareService.serviceCategory" },
new SearchParamDefinition() { Resource = "HealthcareService", Name = "servicetype", Description = @"The type of service provided by this healthcare service", Type = SearchParamType.Token, Path = new string[] { "HealthcareService.serviceType.type", }, XPath = "f:HealthcareService/f:serviceType/f:type", Expression = "HealthcareService.serviceType.type" },
new SearchParamDefinition() { Resource = "ImagingObjectSelection", Name = "author", Description = @"Author of key DICOM object selection", Type = SearchParamType.Reference, Path = new string[] { "ImagingObjectSelection.author", }, Target = new ResourceType[] { ResourceType.Device, ResourceType.Organization, ResourceType.Patient, ResourceType.Practitioner, ResourceType.RelatedPerson, }, XPath = "f:ImagingObjectSelection/f:author", Expression = "ImagingObjectSelection.author" },
new SearchParamDefinition() { Resource = "ImagingObjectSelection", Name = "authoring-time", Description = @"Time of key DICOM object selection authoring", Type = SearchParamType.Date, Path = new string[] { "ImagingObjectSelection.authoringTime", }, XPath = "f:ImagingObjectSelection/f:authoringTime", Expression = "ImagingObjectSelection.authoringTime" },
new SearchParamDefinition() { Resource = "ImagingObjectSelection", Name = "identifier", Description = @"UID of key DICOM object selection", Type = SearchParamType.Uri, Path = new string[] { "ImagingObjectSelection.uid", }, XPath = "f:ImagingObjectSelection/f:uid", Expression = "ImagingObjectSelection.uid" },
new SearchParamDefinition() { Resource = "ImagingObjectSelection", Name = "patient", Description = @"Subject of key DICOM object selection", Type = SearchParamType.Reference, Path = new string[] { "ImagingObjectSelection.patient", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:ImagingObjectSelection/f:patient", Expression = "ImagingObjectSelection.patient" },
new SearchParamDefinition() { Resource = "ImagingObjectSelection", Name = "selected-study", Description = @"Study selected in key DICOM object selection", Type = SearchParamType.Uri, Path = new string[] { "ImagingObjectSelection.study.uid", }, XPath = "f:ImagingObjectSelection/f:study/f:uid", Expression = "ImagingObjectSelection.study.uid" },
new SearchParamDefinition() { Resource = "ImagingObjectSelection", Name = "title", Description = @"Title of key DICOM object selection", Type = SearchParamType.Token, Path = new string[] { "ImagingObjectSelection.title", }, XPath = "f:ImagingObjectSelection/f:title", Expression = "ImagingObjectSelection.title" },
new SearchParamDefinition() { Resource = "ImagingStudy", Name = "accession", Description = @"The accession identifier for the study", Type = SearchParamType.Token, Path = new string[] { "ImagingStudy.accession", }, XPath = "f:ImagingStudy/f:accession", Expression = "ImagingStudy.accession" },
new SearchParamDefinition() { Resource = "ImagingStudy", Name = "bodysite", Description = @"The body site studied", Type = SearchParamType.Token, Path = new string[] { "ImagingStudy.series.bodySite", }, XPath = "f:ImagingStudy/f:series/f:bodySite", Expression = "ImagingStudy.series.bodySite" },
new SearchParamDefinition() { Resource = "ImagingStudy", Name = "dicom-class", Description = @"The type of the instance", Type = SearchParamType.Uri, Path = new string[] { "ImagingStudy.series.instance.sopClass", }, XPath = "f:ImagingStudy/f:series/f:instance/f:sopClass", Expression = "ImagingStudy.series.instance.sopClass" },
new SearchParamDefinition() { Resource = "ImagingStudy", Name = "modality", Description = @"The modality of the series", Type = SearchParamType.Token, Path = new string[] { "ImagingStudy.series.modality", }, XPath = "f:ImagingStudy/f:series/f:modality", Expression = "ImagingStudy.series.modality" },
new SearchParamDefinition() { Resource = "ImagingStudy", Name = "order", Description = @"The order for the image", Type = SearchParamType.Reference, Path = new string[] { "ImagingStudy.order", }, Target = new ResourceType[] { ResourceType.DiagnosticOrder, }, XPath = "f:ImagingStudy/f:order", Expression = "ImagingStudy.order" },
new SearchParamDefinition() { Resource = "ImagingStudy", Name = "patient", Description = @"Who the study is about", Type = SearchParamType.Reference, Path = new string[] { "ImagingStudy.patient", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:ImagingStudy/f:patient", Expression = "ImagingStudy.patient" },
new SearchParamDefinition() { Resource = "ImagingStudy", Name = "series", Description = @"The identifier of the series of images", Type = SearchParamType.Uri, Path = new string[] { "ImagingStudy.series.uid", }, XPath = "f:ImagingStudy/f:series/f:uid", Expression = "ImagingStudy.series.uid" },
new SearchParamDefinition() { Resource = "ImagingStudy", Name = "started", Description = @"When the study was started", Type = SearchParamType.Date, Path = new string[] { "ImagingStudy.started", }, XPath = "f:ImagingStudy/f:started", Expression = "ImagingStudy.started" },
new SearchParamDefinition() { Resource = "ImagingStudy", Name = "study", Description = @"The study identifier for the image", Type = SearchParamType.Uri, Path = new string[] { "ImagingStudy.uid", }, XPath = "f:ImagingStudy/f:uid", Expression = "ImagingStudy.uid" },
new SearchParamDefinition() { Resource = "ImagingStudy", Name = "uid", Description = @"The instance unique identifier", Type = SearchParamType.Uri, Path = new string[] { "ImagingStudy.series.instance.uid", }, XPath = "f:ImagingStudy/f:series/f:instance/f:uid", Expression = "ImagingStudy.series.instance.uid" },
new SearchParamDefinition() { Resource = "Immunization", Name = "date", Description = @"Vaccination (non)-Administration Date", Type = SearchParamType.Date, Path = new string[] { "Immunization.date", }, XPath = "f:Immunization/f:date", Expression = "Immunization.date" },
new SearchParamDefinition() { Resource = "Immunization", Name = "dose-sequence", Description = @"Dose number within series", Type = SearchParamType.Number, Path = new string[] { "Immunization.vaccinationProtocol.doseSequence", }, XPath = "f:Immunization/f:vaccinationProtocol/f:doseSequence", Expression = "Immunization.vaccinationProtocol.doseSequence" },
new SearchParamDefinition() { Resource = "Immunization", Name = "identifier", Description = @"Business identifier", Type = SearchParamType.Token, Path = new string[] { "Immunization.identifier", }, XPath = "f:Immunization/f:identifier", Expression = "Immunization.identifier" },
new SearchParamDefinition() { Resource = "Immunization", Name = "location", Description = @"The service delivery location or facility in which the vaccine was / was to be administered", Type = SearchParamType.Reference, Path = new string[] { "Immunization.location", }, Target = new ResourceType[] { ResourceType.Location, }, XPath = "f:Immunization/f:location", Expression = "Immunization.location" },
new SearchParamDefinition() { Resource = "Immunization", Name = "lot-number", Description = @"Vaccine Lot Number", Type = SearchParamType.String, Path = new string[] { "Immunization.lotNumber", }, XPath = "f:Immunization/f:lotNumber", Expression = "Immunization.lotNumber" },
new SearchParamDefinition() { Resource = "Immunization", Name = "manufacturer", Description = @"Vaccine Manufacturer", Type = SearchParamType.Reference, Path = new string[] { "Immunization.manufacturer", }, Target = new ResourceType[] { ResourceType.Organization, }, XPath = "f:Immunization/f:manufacturer", Expression = "Immunization.manufacturer" },
new SearchParamDefinition() { Resource = "Immunization", Name = "notgiven", Description = @"Administrations which were not given", Type = SearchParamType.Token, Path = new string[] { "Immunization.wasNotGiven", }, XPath = "f:Immunization/f:wasNotGiven", Expression = "Immunization.wasNotGiven" },
new SearchParamDefinition() { Resource = "Immunization", Name = "patient", Description = @"The patient for the vaccination record", Type = SearchParamType.Reference, Path = new string[] { "Immunization.patient", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:Immunization/f:patient", Expression = "Immunization.patient" },
new SearchParamDefinition() { Resource = "Immunization", Name = "performer", Description = @"The practitioner who administered the vaccination", Type = SearchParamType.Reference, Path = new string[] { "Immunization.performer", }, Target = new ResourceType[] { ResourceType.Practitioner, }, XPath = "f:Immunization/f:performer", Expression = "Immunization.performer" },
new SearchParamDefinition() { Resource = "Immunization", Name = "reaction", Description = @"Additional information on reaction", Type = SearchParamType.Reference, Path = new string[] { "Immunization.reaction.detail", }, Target = new ResourceType[] { ResourceType.Observation, }, XPath = "f:Immunization/f:reaction/f:detail", Expression = "Immunization.reaction.detail" },
new SearchParamDefinition() { Resource = "Immunization", Name = "reaction-date", Description = @"When reaction started", Type = SearchParamType.Date, Path = new string[] { "Immunization.reaction.date", }, XPath = "f:Immunization/f:reaction/f:date", Expression = "Immunization.reaction.date" },
new SearchParamDefinition() { Resource = "Immunization", Name = "reason", Description = @"Why immunization occurred", Type = SearchParamType.Token, Path = new string[] { "Immunization.explanation.reason", }, XPath = "f:Immunization/f:explanation/f:reason", Expression = "Immunization.explanation.reason" },
new SearchParamDefinition() { Resource = "Immunization", Name = "reason-not-given", Description = @"Explanation of reason vaccination was not administered", Type = SearchParamType.Token, Path = new string[] { "Immunization.explanation.reasonNotGiven", }, XPath = "f:Immunization/f:explanation/f:reasonNotGiven", Expression = "Immunization.explanation.reasonNotGiven" },
new SearchParamDefinition() { Resource = "Immunization", Name = "requester", Description = @"The practitioner who ordered the vaccination", Type = SearchParamType.Reference, Path = new string[] { "Immunization.requester", }, Target = new ResourceType[] { ResourceType.Practitioner, }, XPath = "f:Immunization/f:requester", Expression = "Immunization.requester" },
new SearchParamDefinition() { Resource = "Immunization", Name = "status", Description = @"Immunization event status", Type = SearchParamType.Token, Path = new string[] { "Immunization.status", }, XPath = "f:Immunization/f:status", Expression = "Immunization.status" },
new SearchParamDefinition() { Resource = "Immunization", Name = "vaccine-code", Description = @"Vaccine Product Administered", Type = SearchParamType.Token, Path = new string[] { "Immunization.vaccineCode", }, XPath = "f:Immunization/f:vaccineCode", Expression = "Immunization.vaccineCode" },
new SearchParamDefinition() { Resource = "ImmunizationRecommendation", Name = "date", Description = @"Date recommendation created", Type = SearchParamType.Date, Path = new string[] { "ImmunizationRecommendation.recommendation.date", }, XPath = "f:ImmunizationRecommendation/f:recommendation/f:date", Expression = "ImmunizationRecommendation.recommendation.date" },
new SearchParamDefinition() { Resource = "ImmunizationRecommendation", Name = "dose-number", Description = @"Recommended dose number", Type = SearchParamType.Number, Path = new string[] { "ImmunizationRecommendation.recommendation.doseNumber", }, XPath = "f:ImmunizationRecommendation/f:recommendation/f:doseNumber", Expression = "ImmunizationRecommendation.recommendation.doseNumber" },
new SearchParamDefinition() { Resource = "ImmunizationRecommendation", Name = "dose-sequence", Description = @"Dose number within sequence", Type = SearchParamType.Number, Path = new string[] { "ImmunizationRecommendation.recommendation.protocol.doseSequence", }, XPath = "f:ImmunizationRecommendation/f:recommendation/f:protocol/f:doseSequence", Expression = "ImmunizationRecommendation.recommendation.protocol.doseSequence" },
new SearchParamDefinition() { Resource = "ImmunizationRecommendation", Name = "identifier", Description = @"Business identifier", Type = SearchParamType.Token, Path = new string[] { "ImmunizationRecommendation.identifier", }, XPath = "f:ImmunizationRecommendation/f:identifier", Expression = "ImmunizationRecommendation.identifier" },
new SearchParamDefinition() { Resource = "ImmunizationRecommendation", Name = "information", Description = @"Patient observations supporting recommendation", Type = SearchParamType.Reference, Path = new string[] { "ImmunizationRecommendation.recommendation.supportingPatientInformation", }, Target = new ResourceType[] { ResourceType.AllergyIntolerance, ResourceType.Observation, }, XPath = "f:ImmunizationRecommendation/f:recommendation/f:supportingPatientInformation", Expression = "ImmunizationRecommendation.recommendation.supportingPatientInformation" },
new SearchParamDefinition() { Resource = "ImmunizationRecommendation", Name = "patient", Description = @"Who this profile is for", Type = SearchParamType.Reference, Path = new string[] { "ImmunizationRecommendation.patient", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:ImmunizationRecommendation/f:patient", Expression = "ImmunizationRecommendation.patient" },
new SearchParamDefinition() { Resource = "ImmunizationRecommendation", Name = "status", Description = @"Vaccine administration status", Type = SearchParamType.Token, Path = new string[] { "ImmunizationRecommendation.recommendation.forecastStatus", }, XPath = "f:ImmunizationRecommendation/f:recommendation/f:forecastStatus", Expression = "ImmunizationRecommendation.recommendation.forecastStatus" },
new SearchParamDefinition() { Resource = "ImmunizationRecommendation", Name = "support", Description = @"Past immunizations supporting recommendation", Type = SearchParamType.Reference, Path = new string[] { "ImmunizationRecommendation.recommendation.supportingImmunization", }, Target = new ResourceType[] { ResourceType.Immunization, }, XPath = "f:ImmunizationRecommendation/f:recommendation/f:supportingImmunization", Expression = "ImmunizationRecommendation.recommendation.supportingImmunization" },
new SearchParamDefinition() { Resource = "ImmunizationRecommendation", Name = "vaccine-type", Description = @"Vaccine recommendation applies to", Type = SearchParamType.Token, Path = new string[] { "ImmunizationRecommendation.recommendation.vaccineCode", }, XPath = "f:ImmunizationRecommendation/f:recommendation/f:vaccineCode", Expression = "ImmunizationRecommendation.recommendation.vaccineCode" },
new SearchParamDefinition() { Resource = "ImplementationGuide", Name = "context", Description = @"A use context assigned to the structure", Type = SearchParamType.Token, Path = new string[] { "ImplementationGuide.useContext", }, XPath = "f:ImplementationGuide/f:useContext", Expression = "ImplementationGuide.useContext" },
new SearchParamDefinition() { Resource = "ImplementationGuide", Name = "date", Description = @"The implementation guide publication date", Type = SearchParamType.Date, Path = new string[] { "ImplementationGuide.date", }, XPath = "f:ImplementationGuide/f:date", Expression = "ImplementationGuide.date" },
new SearchParamDefinition() { Resource = "ImplementationGuide", Name = "dependency", Description = @"Where to find dependency", Type = SearchParamType.Uri, Path = new string[] { "ImplementationGuide.dependency.uri", }, XPath = "f:ImplementationGuide/f:dependency/f:uri", Expression = "ImplementationGuide.dependency.uri" },
new SearchParamDefinition() { Resource = "ImplementationGuide", Name = "description", Description = @"Text search in the description of the implementation guide", Type = SearchParamType.String, Path = new string[] { "ImplementationGuide.description", }, XPath = "f:ImplementationGuide/f:description", Expression = "ImplementationGuide.description" },
new SearchParamDefinition() { Resource = "ImplementationGuide", Name = "experimental", Description = @"If for testing purposes, not real usage", Type = SearchParamType.Token, Path = new string[] { "ImplementationGuide.experimental", }, XPath = "f:ImplementationGuide/f:experimental", Expression = "ImplementationGuide.experimental" },
new SearchParamDefinition() { Resource = "ImplementationGuide", Name = "name", Description = @"Name of the implementation guide", Type = SearchParamType.String, Path = new string[] { "ImplementationGuide.name", }, XPath = "f:ImplementationGuide/f:name", Expression = "ImplementationGuide.name" },
new SearchParamDefinition() { Resource = "ImplementationGuide", Name = "publisher", Description = @"Name of the publisher of the implementation guide", Type = SearchParamType.String, Path = new string[] { "ImplementationGuide.publisher", }, XPath = "f:ImplementationGuide/f:publisher", Expression = "ImplementationGuide.publisher" },
new SearchParamDefinition() { Resource = "ImplementationGuide", Name = "status", Description = @"The current status of the implementation guide", Type = SearchParamType.Token, Path = new string[] { "ImplementationGuide.status", }, XPath = "f:ImplementationGuide/f:status", Expression = "ImplementationGuide.status" },
new SearchParamDefinition() { Resource = "ImplementationGuide", Name = "url", Description = @"Absolute URL used to reference this Implementation Guide", Type = SearchParamType.Uri, Path = new string[] { "ImplementationGuide.url", }, XPath = "f:ImplementationGuide/f:url", Expression = "ImplementationGuide.url" },
new SearchParamDefinition() { Resource = "ImplementationGuide", Name = "version", Description = @"The version identifier of the implementation guide", Type = SearchParamType.Token, Path = new string[] { "ImplementationGuide.version", }, XPath = "f:ImplementationGuide/f:version", Expression = "ImplementationGuide.version" },
new SearchParamDefinition() { Resource = "List", Name = "code", Description = @"What the purpose of this list is", Type = SearchParamType.Token, Path = new string[] { "List.code", }, XPath = "f:List/f:code", Expression = "List.code" },
new SearchParamDefinition() { Resource = "List", Name = "date", Description = @"When the list was prepared", Type = SearchParamType.Date, Path = new string[] { "List.date", }, XPath = "f:List/f:date", Expression = "List.date" },
new SearchParamDefinition() { Resource = "List", Name = "empty-reason", Description = @"Why list is empty", Type = SearchParamType.Token, Path = new string[] { "List.emptyReason", }, XPath = "f:List/f:emptyReason", Expression = "List.emptyReason" },
new SearchParamDefinition() { Resource = "List", Name = "encounter", Description = @"Context in which list created", Type = SearchParamType.Reference, Path = new string[] { "List.encounter", }, Target = new ResourceType[] { ResourceType.Encounter, }, XPath = "f:List/f:encounter", Expression = "List.encounter" },
new SearchParamDefinition() { Resource = "List", Name = "item", Description = @"Actual entry", Type = SearchParamType.Reference, Path = new string[] { "List.entry.item", }, Target = new ResourceType[] { ResourceType.Account, ResourceType.AllergyIntolerance, ResourceType.Appointment, ResourceType.AppointmentResponse, ResourceType.AuditEvent, ResourceType.Basic, ResourceType.Binary, ResourceType.BodySite, ResourceType.Bundle, ResourceType.CarePlan, ResourceType.Claim, ResourceType.ClaimResponse, ResourceType.ClinicalImpression, ResourceType.Communication, ResourceType.CommunicationRequest, ResourceType.Composition, ResourceType.ConceptMap, ResourceType.Condition, ResourceType.Conformance, ResourceType.Contract, ResourceType.Coverage, ResourceType.DataElement, ResourceType.DetectedIssue, ResourceType.Device, ResourceType.DeviceComponent, ResourceType.DeviceMetric, ResourceType.DeviceUseRequest, ResourceType.DeviceUseStatement, ResourceType.DiagnosticOrder, ResourceType.DiagnosticReport, ResourceType.DocumentManifest, ResourceType.DocumentReference, ResourceType.EligibilityRequest, ResourceType.EligibilityResponse, ResourceType.Encounter, ResourceType.EnrollmentRequest, ResourceType.EnrollmentResponse, ResourceType.EpisodeOfCare, ResourceType.ExplanationOfBenefit, ResourceType.FamilyMemberHistory, ResourceType.Flag, ResourceType.Goal, ResourceType.Group, ResourceType.HealthcareService, ResourceType.ImagingObjectSelection, ResourceType.ImagingStudy, ResourceType.Immunization, ResourceType.ImmunizationRecommendation, ResourceType.ImplementationGuide, ResourceType.List, ResourceType.Location, ResourceType.Media, ResourceType.Medication, ResourceType.MedicationAdministration, ResourceType.MedicationDispense, ResourceType.MedicationOrder, ResourceType.MedicationStatement, ResourceType.MessageHeader, ResourceType.NamingSystem, ResourceType.NutritionOrder, ResourceType.Observation, ResourceType.OperationDefinition, ResourceType.OperationOutcome, ResourceType.Order, ResourceType.OrderResponse, ResourceType.Organization, ResourceType.Patient, ResourceType.PaymentNotice, ResourceType.PaymentReconciliation, ResourceType.Person, ResourceType.Practitioner, ResourceType.Procedure, ResourceType.ProcedureRequest, ResourceType.ProcessRequest, ResourceType.ProcessResponse, ResourceType.Provenance, ResourceType.Questionnaire, ResourceType.QuestionnaireResponse, ResourceType.ReferralRequest, ResourceType.RelatedPerson, ResourceType.RiskAssessment, ResourceType.Schedule, ResourceType.SearchParameter, ResourceType.Slot, ResourceType.Specimen, ResourceType.StructureDefinition, ResourceType.Subscription, ResourceType.Substance, ResourceType.SupplyDelivery, ResourceType.SupplyRequest, ResourceType.TestScript, ResourceType.ValueSet, ResourceType.VisionPrescription, }, XPath = "f:List/f:entry/f:item", Expression = "List.entry.item" },
new SearchParamDefinition() { Resource = "List", Name = "notes", Description = @"Comments about the list", Type = SearchParamType.String, Path = new string[] { "List.note", }, XPath = "f:List/f:note", Expression = "List.note" },
new SearchParamDefinition() { Resource = "List", Name = "patient", Description = @"If all resources have the same subject", Type = SearchParamType.Reference, Path = new string[] { "List.subject", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:List/f:subject", Expression = "List.subject" },
new SearchParamDefinition() { Resource = "List", Name = "source", Description = @"Who and/or what defined the list contents (aka Author)", Type = SearchParamType.Reference, Path = new string[] { "List.source", }, Target = new ResourceType[] { ResourceType.Device, ResourceType.Patient, ResourceType.Practitioner, }, XPath = "f:List/f:source", Expression = "List.source" },
new SearchParamDefinition() { Resource = "List", Name = "status", Description = @"current | retired | entered-in-error", Type = SearchParamType.Token, Path = new string[] { "List.status", }, XPath = "f:List/f:status", Expression = "List.status" },
new SearchParamDefinition() { Resource = "List", Name = "subject", Description = @"If all resources have the same subject", Type = SearchParamType.Reference, Path = new string[] { "List.subject", }, Target = new ResourceType[] { ResourceType.Device, ResourceType.Group, ResourceType.Location, ResourceType.Patient, }, XPath = "f:List/f:subject", Expression = "List.subject" },
new SearchParamDefinition() { Resource = "List", Name = "title", Description = @"Descriptive name for the list", Type = SearchParamType.String, Path = new string[] { "List.title", }, XPath = "f:List/f:title", Expression = "List.title" },
new SearchParamDefinition() { Resource = "Location", Name = "address", Description = @"A (part of the) address of the location", Type = SearchParamType.String, Path = new string[] { "Location.address", }, XPath = "f:Location/f:address", Expression = "Location.address" },
new SearchParamDefinition() { Resource = "Location", Name = "address-city", Description = @"A city specified in an address", Type = SearchParamType.String, Path = new string[] { "Location.address.city", }, XPath = "f:Location/f:address/f:city", Expression = "Location.address.city" },
new SearchParamDefinition() { Resource = "Location", Name = "address-country", Description = @"A country specified in an address", Type = SearchParamType.String, Path = new string[] { "Location.address.country", }, XPath = "f:Location/f:address/f:country", Expression = "Location.address.country" },
new SearchParamDefinition() { Resource = "Location", Name = "address-postalcode", Description = @"A postal code specified in an address", Type = SearchParamType.String, Path = new string[] { "Location.address.postalCode", }, XPath = "f:Location/f:address/f:postalCode", Expression = "Location.address.postalCode" },
new SearchParamDefinition() { Resource = "Location", Name = "address-state", Description = @"A state specified in an address", Type = SearchParamType.String, Path = new string[] { "Location.address.state", }, XPath = "f:Location/f:address/f:state", Expression = "Location.address.state" },
new SearchParamDefinition() { Resource = "Location", Name = "address-use", Description = @"A use code specified in an address", Type = SearchParamType.Token, Path = new string[] { "Location.address.use", }, XPath = "f:Location/f:address/f:use", Expression = "Location.address.use" },
new SearchParamDefinition() { Resource = "Location", Name = "identifier", Description = @"Unique code or number identifying the location to its users", Type = SearchParamType.Token, Path = new string[] { "Location.identifier", }, XPath = "f:Location/f:identifier", Expression = "Location.identifier" },
new SearchParamDefinition() { Resource = "Location", Name = "name", Description = @"A (portion of the) name of the location", Type = SearchParamType.String, Path = new string[] { "Location.name", }, XPath = "f:Location/f:name", Expression = "Location.name" },
new SearchParamDefinition() { Resource = "Location", Name = "near", Description = @"The coordinates expressed as [lat],[long] (using the WGS84 datum, see notes) to find locations near to (servers may search using a square rather than a circle for efficiency)", Type = SearchParamType.Token, Path = new string[] { "Location.position", }, XPath = "f:Location/f:position", Expression = "Location.position" },
new SearchParamDefinition() { Resource = "Location", Name = "near-distance", Description = @"A distance quantity to limit the near search to locations within a specific distance", Type = SearchParamType.Token, Path = new string[] { "Location.position", }, XPath = "f:Location/f:position", Expression = "Location.position" },
new SearchParamDefinition() { Resource = "Location", Name = "organization", Description = @"Searches for locations that are managed by the provided organization", Type = SearchParamType.Reference, Path = new string[] { "Location.managingOrganization", }, Target = new ResourceType[] { ResourceType.Organization, }, XPath = "f:Location/f:managingOrganization", Expression = "Location.managingOrganization" },
new SearchParamDefinition() { Resource = "Location", Name = "partof", Description = @"The location of which this location is a part", Type = SearchParamType.Reference, Path = new string[] { "Location.partOf", }, Target = new ResourceType[] { ResourceType.Location, }, XPath = "f:Location/f:partOf", Expression = "Location.partOf" },
new SearchParamDefinition() { Resource = "Location", Name = "status", Description = @"Searches for locations with a specific kind of status", Type = SearchParamType.Token, Path = new string[] { "Location.status", }, XPath = "f:Location/f:status", Expression = "Location.status" },
new SearchParamDefinition() { Resource = "Location", Name = "type", Description = @"A code for the type of location", Type = SearchParamType.Token, Path = new string[] { "Location.type", }, XPath = "f:Location/f:type", Expression = "Location.type" },
new SearchParamDefinition() { Resource = "Media", Name = "created", Description = @"Date attachment was first created", Type = SearchParamType.Date, Path = new string[] { "Media.content.creation", }, XPath = "f:Media/f:content/f:creation", Expression = "Media.content.creation" },
new SearchParamDefinition() { Resource = "Media", Name = "identifier", Description = @"Identifier(s) for the image", Type = SearchParamType.Token, Path = new string[] { "Media.identifier", }, XPath = "f:Media/f:identifier", Expression = "Media.identifier" },
new SearchParamDefinition() { Resource = "Media", Name = "operator", Description = @"The person who generated the image", Type = SearchParamType.Reference, Path = new string[] { "Media.operator", }, Target = new ResourceType[] { ResourceType.Practitioner, }, XPath = "f:Media/f:operator", Expression = "Media.operator" },
new SearchParamDefinition() { Resource = "Media", Name = "patient", Description = @"Who/What this Media is a record of", Type = SearchParamType.Reference, Path = new string[] { "Media.subject", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:Media/f:subject", Expression = "Media.subject" },
new SearchParamDefinition() { Resource = "Media", Name = "subject", Description = @"Who/What this Media is a record of", Type = SearchParamType.Reference, Path = new string[] { "Media.subject", }, Target = new ResourceType[] { ResourceType.Device, ResourceType.Group, ResourceType.Patient, ResourceType.Practitioner, ResourceType.Specimen, }, XPath = "f:Media/f:subject", Expression = "Media.subject" },
new SearchParamDefinition() { Resource = "Media", Name = "subtype", Description = @"The type of acquisition equipment/process", Type = SearchParamType.Token, Path = new string[] { "Media.subtype", }, XPath = "f:Media/f:subtype", Expression = "Media.subtype" },
new SearchParamDefinition() { Resource = "Media", Name = "type", Description = @"photo | video | audio", Type = SearchParamType.Token, Path = new string[] { "Media.type", }, XPath = "f:Media/f:type", Expression = "Media.type" },
new SearchParamDefinition() { Resource = "Media", Name = "view", Description = @"Imaging view, e.g. Lateral or Antero-posterior", Type = SearchParamType.Token, Path = new string[] { "Media.view", }, XPath = "f:Media/f:view", Expression = "Media.view" },
new SearchParamDefinition() { Resource = "Medication", Name = "code", Description = @"Codes that identify this medication", Type = SearchParamType.Token, Path = new string[] { "Medication.code", }, XPath = "f:Medication/f:code", Expression = "Medication.code" },
new SearchParamDefinition() { Resource = "Medication", Name = "container", Description = @"E.g. box, vial, blister-pack", Type = SearchParamType.Token, Path = new string[] { "Medication.package.container", }, XPath = "f:Medication/f:package/f:container", Expression = "Medication.package.container" },
new SearchParamDefinition() { Resource = "Medication", Name = "content", Description = @"A product in the package", Type = SearchParamType.Reference, Path = new string[] { "Medication.package.content.item", }, Target = new ResourceType[] { ResourceType.Medication, }, XPath = "f:Medication/f:package/f:content/f:item", Expression = "Medication.package.content.item" },
new SearchParamDefinition() { Resource = "Medication", Name = "form", Description = @"powder | tablets | carton +", Type = SearchParamType.Token, Path = new string[] { "Medication.product.form", }, XPath = "f:Medication/f:product/f:form", Expression = "Medication.product.form" },
new SearchParamDefinition() { Resource = "Medication", Name = "ingredient", Description = @"The product contained", Type = SearchParamType.Reference, Path = new string[] { "Medication.product.ingredient.item", }, Target = new ResourceType[] { ResourceType.Medication, ResourceType.Substance, }, XPath = "f:Medication/f:product/f:ingredient/f:item", Expression = "Medication.product.ingredient.item" },
new SearchParamDefinition() { Resource = "Medication", Name = "manufacturer", Description = @"Manufacturer of the item", Type = SearchParamType.Reference, Path = new string[] { "Medication.manufacturer", }, Target = new ResourceType[] { ResourceType.Organization, }, XPath = "f:Medication/f:manufacturer", Expression = "Medication.manufacturer" },
new SearchParamDefinition() { Resource = "MedicationAdministration", Name = "code", Description = @"Return administrations of this medication code", Type = SearchParamType.Token, Path = new string[] { "MedicationAdministration.medicationCodeableConcept", }, XPath = "f:MedicationAdministration/f:medicationCodeableConcept", Expression = "MedicationAdministration.medicationCodeableConcept" },
new SearchParamDefinition() { Resource = "MedicationAdministration", Name = "device", Description = @"Return administrations with this administration device identity", Type = SearchParamType.Reference, Path = new string[] { "MedicationAdministration.device", }, Target = new ResourceType[] { ResourceType.Device, }, XPath = "f:MedicationAdministration/f:device", Expression = "MedicationAdministration.device" },
new SearchParamDefinition() { Resource = "MedicationAdministration", Name = "effectivetime", Description = @"Date administration happened (or did not happen)", Type = SearchParamType.Date, Path = new string[] { "MedicationAdministration.effectiveTimeDateTime", "MedicationAdministration.effectiveTimePeriod", }, XPath = "f:MedicationAdministration/f:effectiveTimeDateTime | f:MedicationAdministration/f:effectiveTimePeriod", Expression = "MedicationAdministration.effectiveTime[x]" },
new SearchParamDefinition() { Resource = "MedicationAdministration", Name = "encounter", Description = @"Return administrations that share this encounter", Type = SearchParamType.Reference, Path = new string[] { "MedicationAdministration.encounter", }, Target = new ResourceType[] { ResourceType.Encounter, }, XPath = "f:MedicationAdministration/f:encounter", Expression = "MedicationAdministration.encounter" },
new SearchParamDefinition() { Resource = "MedicationAdministration", Name = "identifier", Description = @"Return administrations with this external identifier", Type = SearchParamType.Token, Path = new string[] { "MedicationAdministration.identifier", }, XPath = "f:MedicationAdministration/f:identifier", Expression = "MedicationAdministration.identifier" },
new SearchParamDefinition() { Resource = "MedicationAdministration", Name = "medication", Description = @"Return administrations of this medication resource", Type = SearchParamType.Reference, Path = new string[] { "MedicationAdministration.medicationReference", }, Target = new ResourceType[] { ResourceType.Medication, }, XPath = "f:MedicationAdministration/f:medicationReference", Expression = "MedicationAdministration.medicationReference" },
new SearchParamDefinition() { Resource = "MedicationAdministration", Name = "notgiven", Description = @"Administrations that were not made", Type = SearchParamType.Token, Path = new string[] { "MedicationAdministration.wasNotGiven", }, XPath = "f:MedicationAdministration/f:wasNotGiven", Expression = "MedicationAdministration.wasNotGiven" },
new SearchParamDefinition() { Resource = "MedicationAdministration", Name = "patient", Description = @"The identity of a patient to list administrations for", Type = SearchParamType.Reference, Path = new string[] { "MedicationAdministration.patient", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:MedicationAdministration/f:patient", Expression = "MedicationAdministration.patient" },
new SearchParamDefinition() { Resource = "MedicationAdministration", Name = "practitioner", Description = @"Who administered substance", Type = SearchParamType.Reference, Path = new string[] { "MedicationAdministration.practitioner", }, Target = new ResourceType[] { ResourceType.Patient, ResourceType.Practitioner, ResourceType.RelatedPerson, }, XPath = "f:MedicationAdministration/f:practitioner", Expression = "MedicationAdministration.practitioner" },
new SearchParamDefinition() { Resource = "MedicationAdministration", Name = "prescription", Description = @"The identity of a prescription to list administrations from", Type = SearchParamType.Reference, Path = new string[] { "MedicationAdministration.prescription", }, Target = new ResourceType[] { ResourceType.MedicationOrder, }, XPath = "f:MedicationAdministration/f:prescription", Expression = "MedicationAdministration.prescription" },
new SearchParamDefinition() { Resource = "MedicationAdministration", Name = "status", Description = @"MedicationAdministration event status (for example one of active/paused/completed/nullified)", Type = SearchParamType.Token, Path = new string[] { "MedicationAdministration.status", }, XPath = "f:MedicationAdministration/f:status", Expression = "MedicationAdministration.status" },
new SearchParamDefinition() { Resource = "MedicationDispense", Name = "code", Description = @"Return dispenses of this medicine code", Type = SearchParamType.Token, Path = new string[] { "MedicationDispense.medicationCodeableConcept", }, XPath = "f:MedicationDispense/f:medicationCodeableConcept", Expression = "MedicationDispense.medicationCodeableConcept" },
new SearchParamDefinition() { Resource = "MedicationDispense", Name = "destination", Description = @"Return dispenses that should be sent to a specific destination", Type = SearchParamType.Reference, Path = new string[] { "MedicationDispense.destination", }, Target = new ResourceType[] { ResourceType.Location, }, XPath = "f:MedicationDispense/f:destination", Expression = "MedicationDispense.destination" },
new SearchParamDefinition() { Resource = "MedicationDispense", Name = "dispenser", Description = @"Return all dispenses performed by a specific individual", Type = SearchParamType.Reference, Path = new string[] { "MedicationDispense.dispenser", }, Target = new ResourceType[] { ResourceType.Practitioner, }, XPath = "f:MedicationDispense/f:dispenser", Expression = "MedicationDispense.dispenser" },
new SearchParamDefinition() { Resource = "MedicationDispense", Name = "identifier", Description = @"Return dispenses with this external identifier", Type = SearchParamType.Token, Path = new string[] { "MedicationDispense.identifier", }, XPath = "f:MedicationDispense/f:identifier", Expression = "MedicationDispense.identifier" },
new SearchParamDefinition() { Resource = "MedicationDispense", Name = "medication", Description = @"Return dispenses of this medicine resource", Type = SearchParamType.Reference, Path = new string[] { "MedicationDispense.medicationReference", }, Target = new ResourceType[] { ResourceType.Medication, }, XPath = "f:MedicationDispense/f:medicationReference", Expression = "MedicationDispense.medicationReference" },
new SearchParamDefinition() { Resource = "MedicationDispense", Name = "patient", Description = @"The identity of a patient to list dispenses for", Type = SearchParamType.Reference, Path = new string[] { "MedicationDispense.patient", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:MedicationDispense/f:patient", Expression = "MedicationDispense.patient" },
new SearchParamDefinition() { Resource = "MedicationDispense", Name = "prescription", Description = @"The identity of a prescription to list dispenses from", Type = SearchParamType.Reference, Path = new string[] { "MedicationDispense.authorizingPrescription", }, Target = new ResourceType[] { ResourceType.MedicationOrder, }, XPath = "f:MedicationDispense/f:authorizingPrescription", Expression = "MedicationDispense.authorizingPrescription" },
new SearchParamDefinition() { Resource = "MedicationDispense", Name = "receiver", Description = @"Who collected the medication", Type = SearchParamType.Reference, Path = new string[] { "MedicationDispense.receiver", }, Target = new ResourceType[] { ResourceType.Patient, ResourceType.Practitioner, }, XPath = "f:MedicationDispense/f:receiver", Expression = "MedicationDispense.receiver" },
new SearchParamDefinition() { Resource = "MedicationDispense", Name = "responsibleparty", Description = @"Return all dispenses with the specified responsible party", Type = SearchParamType.Reference, Path = new string[] { "MedicationDispense.substitution.responsibleParty", }, Target = new ResourceType[] { ResourceType.Practitioner, }, XPath = "f:MedicationDispense/f:substitution/f:responsibleParty", Expression = "MedicationDispense.substitution.responsibleParty" },
new SearchParamDefinition() { Resource = "MedicationDispense", Name = "status", Description = @"Status of the dispense", Type = SearchParamType.Token, Path = new string[] { "MedicationDispense.status", }, XPath = "f:MedicationDispense/f:status", Expression = "MedicationDispense.status" },
new SearchParamDefinition() { Resource = "MedicationDispense", Name = "type", Description = @"Return all dispenses of a specific type", Type = SearchParamType.Token, Path = new string[] { "MedicationDispense.type", }, XPath = "f:MedicationDispense/f:type", Expression = "MedicationDispense.type" },
new SearchParamDefinition() { Resource = "MedicationDispense", Name = "whenhandedover", Description = @"Date when medication handed over to patient (outpatient setting), or supplied to ward or clinic (inpatient setting)", Type = SearchParamType.Date, Path = new string[] { "MedicationDispense.whenHandedOver", }, XPath = "f:MedicationDispense/f:whenHandedOver", Expression = "MedicationDispense.whenHandedOver" },
new SearchParamDefinition() { Resource = "MedicationDispense", Name = "whenprepared", Description = @"Date when medication prepared", Type = SearchParamType.Date, Path = new string[] { "MedicationDispense.whenPrepared", }, XPath = "f:MedicationDispense/f:whenPrepared", Expression = "MedicationDispense.whenPrepared" },
new SearchParamDefinition() { Resource = "MedicationOrder", Name = "code", Description = @"Return administrations of this medication code", Type = SearchParamType.Token, Path = new string[] { "MedicationOrder.medicationCodeableConcept", }, XPath = "f:MedicationOrder/f:medicationCodeableConcept", Expression = "MedicationOrder.medicationCodeableConcept" },
new SearchParamDefinition() { Resource = "MedicationOrder", Name = "datewritten", Description = @"Return prescriptions written on this date", Type = SearchParamType.Date, Path = new string[] { "MedicationOrder.dateWritten", }, XPath = "f:MedicationOrder/f:dateWritten", Expression = "MedicationOrder.dateWritten" },
new SearchParamDefinition() { Resource = "MedicationOrder", Name = "encounter", Description = @"Return prescriptions with this encounter identifier", Type = SearchParamType.Reference, Path = new string[] { "MedicationOrder.encounter", }, Target = new ResourceType[] { ResourceType.Encounter, }, XPath = "f:MedicationOrder/f:encounter", Expression = "MedicationOrder.encounter" },
new SearchParamDefinition() { Resource = "MedicationOrder", Name = "identifier", Description = @"Return prescriptions with this external identifier", Type = SearchParamType.Token, Path = new string[] { "MedicationOrder.identifier", }, XPath = "f:MedicationOrder/f:identifier", Expression = "MedicationOrder.identifier" },
new SearchParamDefinition() { Resource = "MedicationOrder", Name = "medication", Description = @"Return administrations of this medication reference", Type = SearchParamType.Reference, Path = new string[] { "MedicationOrder.medicationReference", }, Target = new ResourceType[] { ResourceType.Medication, }, XPath = "f:MedicationOrder/f:medicationReference", Expression = "MedicationOrder.medicationReference" },
new SearchParamDefinition() { Resource = "MedicationOrder", Name = "patient", Description = @"The identity of a patient to list orders for", Type = SearchParamType.Reference, Path = new string[] { "MedicationOrder.patient", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:MedicationOrder/f:patient", Expression = "MedicationOrder.patient" },
new SearchParamDefinition() { Resource = "MedicationOrder", Name = "prescriber", Description = @"Who ordered the medication(s)", Type = SearchParamType.Reference, Path = new string[] { "MedicationOrder.prescriber", }, Target = new ResourceType[] { ResourceType.Practitioner, }, XPath = "f:MedicationOrder/f:prescriber", Expression = "MedicationOrder.prescriber" },
new SearchParamDefinition() { Resource = "MedicationOrder", Name = "status", Description = @"Status of the prescription", Type = SearchParamType.Token, Path = new string[] { "MedicationOrder.status", }, XPath = "f:MedicationOrder/f:status", Expression = "MedicationOrder.status" },
new SearchParamDefinition() { Resource = "MedicationStatement", Name = "code", Description = @"Return administrations of this medication code", Type = SearchParamType.Token, Path = new string[] { "MedicationStatement.medicationCodeableConcept", }, XPath = "f:MedicationStatement/f:medicationCodeableConcept", Expression = "MedicationStatement.medicationCodeableConcept" },
new SearchParamDefinition() { Resource = "MedicationStatement", Name = "effectivedate", Description = @"Date when patient was taking (or not taking) the medication", Type = SearchParamType.Date, Path = new string[] { "MedicationStatement.effectiveDateTime", "MedicationStatement.effectivePeriod", }, XPath = "f:MedicationStatement/f:effectiveDateTime | f:MedicationStatement/f:effectivePeriod", Expression = "MedicationStatement.effective[x]" },
new SearchParamDefinition() { Resource = "MedicationStatement", Name = "identifier", Description = @"Return statements with this external identifier", Type = SearchParamType.Token, Path = new string[] { "MedicationStatement.identifier", }, XPath = "f:MedicationStatement/f:identifier", Expression = "MedicationStatement.identifier" },
new SearchParamDefinition() { Resource = "MedicationStatement", Name = "medication", Description = @"Return administrations of this medication reference", Type = SearchParamType.Reference, Path = new string[] { "MedicationStatement.medicationReference", }, Target = new ResourceType[] { ResourceType.Medication, }, XPath = "f:MedicationStatement/f:medicationReference", Expression = "MedicationStatement.medicationReference" },
new SearchParamDefinition() { Resource = "MedicationStatement", Name = "patient", Description = @"The identity of a patient to list statements for", Type = SearchParamType.Reference, Path = new string[] { "MedicationStatement.patient", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:MedicationStatement/f:patient", Expression = "MedicationStatement.patient" },
new SearchParamDefinition() { Resource = "MedicationStatement", Name = "source", Description = @"Who the information in the statement came from", Type = SearchParamType.Reference, Path = new string[] { "MedicationStatement.informationSource", }, Target = new ResourceType[] { ResourceType.Patient, ResourceType.Practitioner, ResourceType.RelatedPerson, }, XPath = "f:MedicationStatement/f:informationSource", Expression = "MedicationStatement.informationSource" },
new SearchParamDefinition() { Resource = "MedicationStatement", Name = "status", Description = @"Return statements that match the given status", Type = SearchParamType.Token, Path = new string[] { "MedicationStatement.status", }, XPath = "f:MedicationStatement/f:status", Expression = "MedicationStatement.status" },
new SearchParamDefinition() { Resource = "MessageHeader", Name = "author", Description = @"The source of the decision", Type = SearchParamType.Reference, Path = new string[] { "MessageHeader.author", }, Target = new ResourceType[] { ResourceType.Practitioner, }, XPath = "f:MessageHeader/f:author", Expression = "MessageHeader.author" },
new SearchParamDefinition() { Resource = "MessageHeader", Name = "code", Description = @"ok | transient-error | fatal-error", Type = SearchParamType.Token, Path = new string[] { "MessageHeader.response.code", }, XPath = "f:MessageHeader/f:response/f:code", Expression = "MessageHeader.response.code" },
new SearchParamDefinition() { Resource = "MessageHeader", Name = "data", Description = @"The actual content of the message", Type = SearchParamType.Reference, Path = new string[] { "MessageHeader.data", }, Target = new ResourceType[] { ResourceType.Account, ResourceType.AllergyIntolerance, ResourceType.Appointment, ResourceType.AppointmentResponse, ResourceType.AuditEvent, ResourceType.Basic, ResourceType.Binary, ResourceType.BodySite, ResourceType.Bundle, ResourceType.CarePlan, ResourceType.Claim, ResourceType.ClaimResponse, ResourceType.ClinicalImpression, ResourceType.Communication, ResourceType.CommunicationRequest, ResourceType.Composition, ResourceType.ConceptMap, ResourceType.Condition, ResourceType.Conformance, ResourceType.Contract, ResourceType.Coverage, ResourceType.DataElement, ResourceType.DetectedIssue, ResourceType.Device, ResourceType.DeviceComponent, ResourceType.DeviceMetric, ResourceType.DeviceUseRequest, ResourceType.DeviceUseStatement, ResourceType.DiagnosticOrder, ResourceType.DiagnosticReport, ResourceType.DocumentManifest, ResourceType.DocumentReference, ResourceType.EligibilityRequest, ResourceType.EligibilityResponse, ResourceType.Encounter, ResourceType.EnrollmentRequest, ResourceType.EnrollmentResponse, ResourceType.EpisodeOfCare, ResourceType.ExplanationOfBenefit, ResourceType.FamilyMemberHistory, ResourceType.Flag, ResourceType.Goal, ResourceType.Group, ResourceType.HealthcareService, ResourceType.ImagingObjectSelection, ResourceType.ImagingStudy, ResourceType.Immunization, ResourceType.ImmunizationRecommendation, ResourceType.ImplementationGuide, ResourceType.List, ResourceType.Location, ResourceType.Media, ResourceType.Medication, ResourceType.MedicationAdministration, ResourceType.MedicationDispense, ResourceType.MedicationOrder, ResourceType.MedicationStatement, ResourceType.MessageHeader, ResourceType.NamingSystem, ResourceType.NutritionOrder, ResourceType.Observation, ResourceType.OperationDefinition, ResourceType.OperationOutcome, ResourceType.Order, ResourceType.OrderResponse, ResourceType.Organization, ResourceType.Patient, ResourceType.PaymentNotice, ResourceType.PaymentReconciliation, ResourceType.Person, ResourceType.Practitioner, ResourceType.Procedure, ResourceType.ProcedureRequest, ResourceType.ProcessRequest, ResourceType.ProcessResponse, ResourceType.Provenance, ResourceType.Questionnaire, ResourceType.QuestionnaireResponse, ResourceType.ReferralRequest, ResourceType.RelatedPerson, ResourceType.RiskAssessment, ResourceType.Schedule, ResourceType.SearchParameter, ResourceType.Slot, ResourceType.Specimen, ResourceType.StructureDefinition, ResourceType.Subscription, ResourceType.Substance, ResourceType.SupplyDelivery, ResourceType.SupplyRequest, ResourceType.TestScript, ResourceType.ValueSet, ResourceType.VisionPrescription, }, XPath = "f:MessageHeader/f:data", Expression = "MessageHeader.data" },
new SearchParamDefinition() { Resource = "MessageHeader", Name = "destination", Description = @"Name of system", Type = SearchParamType.String, Path = new string[] { "MessageHeader.destination.name", }, XPath = "f:MessageHeader/f:destination/f:name", Expression = "MessageHeader.destination.name" },
new SearchParamDefinition() { Resource = "MessageHeader", Name = "destination-uri", Description = @"Actual destination address or id", Type = SearchParamType.Uri, Path = new string[] { "MessageHeader.destination.endpoint", }, XPath = "f:MessageHeader/f:destination/f:endpoint", Expression = "MessageHeader.destination.endpoint" },
new SearchParamDefinition() { Resource = "MessageHeader", Name = "enterer", Description = @"The source of the data entry", Type = SearchParamType.Reference, Path = new string[] { "MessageHeader.enterer", }, Target = new ResourceType[] { ResourceType.Practitioner, }, XPath = "f:MessageHeader/f:enterer", Expression = "MessageHeader.enterer" },
new SearchParamDefinition() { Resource = "MessageHeader", Name = "event", Description = @"Code for the event this message represents", Type = SearchParamType.Token, Path = new string[] { "MessageHeader.event", }, XPath = "f:MessageHeader/f:event", Expression = "MessageHeader.event" },
new SearchParamDefinition() { Resource = "MessageHeader", Name = "receiver", Description = @"Intended ""real-world"" recipient for the data", Type = SearchParamType.Reference, Path = new string[] { "MessageHeader.receiver", }, Target = new ResourceType[] { ResourceType.Organization, ResourceType.Practitioner, }, XPath = "f:MessageHeader/f:receiver", Expression = "MessageHeader.receiver" },
new SearchParamDefinition() { Resource = "MessageHeader", Name = "response-id", Description = @"Id of original message", Type = SearchParamType.Token, Path = new string[] { "MessageHeader.response.identifier", }, XPath = "f:MessageHeader/f:response/f:identifier", Expression = "MessageHeader.response.identifier" },
new SearchParamDefinition() { Resource = "MessageHeader", Name = "responsible", Description = @"Final responsibility for event", Type = SearchParamType.Reference, Path = new string[] { "MessageHeader.responsible", }, Target = new ResourceType[] { ResourceType.Organization, ResourceType.Practitioner, }, XPath = "f:MessageHeader/f:responsible", Expression = "MessageHeader.responsible" },
new SearchParamDefinition() { Resource = "MessageHeader", Name = "source", Description = @"Name of system", Type = SearchParamType.String, Path = new string[] { "MessageHeader.source.name", }, XPath = "f:MessageHeader/f:source/f:name", Expression = "MessageHeader.source.name" },
new SearchParamDefinition() { Resource = "MessageHeader", Name = "source-uri", Description = @"Actual message source address or id", Type = SearchParamType.Uri, Path = new string[] { "MessageHeader.source.endpoint", }, XPath = "f:MessageHeader/f:source/f:endpoint", Expression = "MessageHeader.source.endpoint" },
new SearchParamDefinition() { Resource = "MessageHeader", Name = "target", Description = @"Particular delivery destination within the destination", Type = SearchParamType.Reference, Path = new string[] { "MessageHeader.destination.target", }, Target = new ResourceType[] { ResourceType.Device, }, XPath = "f:MessageHeader/f:destination/f:target", Expression = "MessageHeader.destination.target" },
new SearchParamDefinition() { Resource = "MessageHeader", Name = "timestamp", Description = @"Time that the message was sent", Type = SearchParamType.Date, Path = new string[] { "MessageHeader.timestamp", }, XPath = "f:MessageHeader/f:timestamp", Expression = "MessageHeader.timestamp" },
new SearchParamDefinition() { Resource = "NamingSystem", Name = "contact", Description = @"Name of a individual to contact", Type = SearchParamType.String, Path = new string[] { "NamingSystem.contact.name", }, XPath = "f:NamingSystem/f:contact/f:name", Expression = "NamingSystem.contact.name" },
new SearchParamDefinition() { Resource = "NamingSystem", Name = "context", Description = @"Content intends to support these contexts", Type = SearchParamType.Token, Path = new string[] { "NamingSystem.useContext", }, XPath = "f:NamingSystem/f:useContext", Expression = "NamingSystem.useContext" },
new SearchParamDefinition() { Resource = "NamingSystem", Name = "date", Description = @"Publication Date(/time)", Type = SearchParamType.Date, Path = new string[] { "NamingSystem.date", }, XPath = "f:NamingSystem/f:date", Expression = "NamingSystem.date" },
new SearchParamDefinition() { Resource = "NamingSystem", Name = "id-type", Description = @"oid | uuid | uri | other", Type = SearchParamType.Token, Path = new string[] { "NamingSystem.uniqueId.type", }, XPath = "f:NamingSystem/f:uniqueId/f:type", Expression = "NamingSystem.uniqueId.type" },
new SearchParamDefinition() { Resource = "NamingSystem", Name = "kind", Description = @"codesystem | identifier | root", Type = SearchParamType.Token, Path = new string[] { "NamingSystem.kind", }, XPath = "f:NamingSystem/f:kind", Expression = "NamingSystem.kind" },
new SearchParamDefinition() { Resource = "NamingSystem", Name = "name", Description = @"Human-readable label", Type = SearchParamType.String, Path = new string[] { "NamingSystem.name", }, XPath = "f:NamingSystem/f:name", Expression = "NamingSystem.name" },
new SearchParamDefinition() { Resource = "NamingSystem", Name = "period", Description = @"When is identifier valid?", Type = SearchParamType.Date, Path = new string[] { "NamingSystem.uniqueId.period", }, XPath = "f:NamingSystem/f:uniqueId/f:period", Expression = "NamingSystem.uniqueId.period" },
new SearchParamDefinition() { Resource = "NamingSystem", Name = "publisher", Description = @"Name of the publisher (Organization or individual)", Type = SearchParamType.String, Path = new string[] { "NamingSystem.publisher", }, XPath = "f:NamingSystem/f:publisher", Expression = "NamingSystem.publisher" },
new SearchParamDefinition() { Resource = "NamingSystem", Name = "replaced-by", Description = @"Use this instead", Type = SearchParamType.Reference, Path = new string[] { "NamingSystem.replacedBy", }, Target = new ResourceType[] { ResourceType.NamingSystem, }, XPath = "f:NamingSystem/f:replacedBy", Expression = "NamingSystem.replacedBy" },
new SearchParamDefinition() { Resource = "NamingSystem", Name = "responsible", Description = @"Who maintains system namespace?", Type = SearchParamType.String, Path = new string[] { "NamingSystem.responsible", }, XPath = "f:NamingSystem/f:responsible", Expression = "NamingSystem.responsible" },
new SearchParamDefinition() { Resource = "NamingSystem", Name = "status", Description = @"draft | active | retired", Type = SearchParamType.Token, Path = new string[] { "NamingSystem.status", }, XPath = "f:NamingSystem/f:status", Expression = "NamingSystem.status" },
new SearchParamDefinition() { Resource = "NamingSystem", Name = "telecom", Description = @"Contact details for individual or publisher", Type = SearchParamType.Token, Path = new string[] { "NamingSystem.contact.telecom", }, XPath = "f:NamingSystem/f:contact/f:telecom", Expression = "NamingSystem.contact.telecom" },
new SearchParamDefinition() { Resource = "NamingSystem", Name = "type", Description = @"e.g. driver, provider, patient, bank etc.", Type = SearchParamType.Token, Path = new string[] { "NamingSystem.type", }, XPath = "f:NamingSystem/f:type", Expression = "NamingSystem.type" },
new SearchParamDefinition() { Resource = "NamingSystem", Name = "value", Description = @"The unique identifier", Type = SearchParamType.String, Path = new string[] { "NamingSystem.uniqueId.value", }, XPath = "f:NamingSystem/f:uniqueId/f:value", Expression = "NamingSystem.uniqueId.value" },
new SearchParamDefinition() { Resource = "NutritionOrder", Name = "additive", Description = @"Type of module component to add to the feeding", Type = SearchParamType.Token, Path = new string[] { "NutritionOrder.enteralFormula.additiveType", }, XPath = "f:NutritionOrder/f:enteralFormula/f:additiveType", Expression = "NutritionOrder.enteralFormula.additiveType" },
new SearchParamDefinition() { Resource = "NutritionOrder", Name = "datetime", Description = @"Return nutrition orders requested on this date", Type = SearchParamType.Date, Path = new string[] { "NutritionOrder.dateTime", }, XPath = "f:NutritionOrder/f:dateTime", Expression = "NutritionOrder.dateTime" },
new SearchParamDefinition() { Resource = "NutritionOrder", Name = "encounter", Description = @"Return nutrition orders with this encounter identifier", Type = SearchParamType.Reference, Path = new string[] { "NutritionOrder.encounter", }, Target = new ResourceType[] { ResourceType.Encounter, }, XPath = "f:NutritionOrder/f:encounter", Expression = "NutritionOrder.encounter" },
new SearchParamDefinition() { Resource = "NutritionOrder", Name = "formula", Description = @"Type of enteral or infant formula", Type = SearchParamType.Token, Path = new string[] { "NutritionOrder.enteralFormula.baseFormulaType", }, XPath = "f:NutritionOrder/f:enteralFormula/f:baseFormulaType", Expression = "NutritionOrder.enteralFormula.baseFormulaType" },
new SearchParamDefinition() { Resource = "NutritionOrder", Name = "identifier", Description = @"Return nutrition orders with this external identifier", Type = SearchParamType.Token, Path = new string[] { "NutritionOrder.identifier", }, XPath = "f:NutritionOrder/f:identifier", Expression = "NutritionOrder.identifier" },
new SearchParamDefinition() { Resource = "NutritionOrder", Name = "oraldiet", Description = @"Type of diet that can be consumed orally (i.e., take via the mouth).", Type = SearchParamType.Token, Path = new string[] { "NutritionOrder.oralDiet.type", }, XPath = "f:NutritionOrder/f:oralDiet/f:type", Expression = "NutritionOrder.oralDiet.type" },
new SearchParamDefinition() { Resource = "NutritionOrder", Name = "patient", Description = @"The identity of the person who requires the diet, formula or nutritional supplement", Type = SearchParamType.Reference, Path = new string[] { "NutritionOrder.patient", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:NutritionOrder/f:patient", Expression = "NutritionOrder.patient" },
new SearchParamDefinition() { Resource = "NutritionOrder", Name = "provider", Description = @"The identify of the provider who placed the nutrition order", Type = SearchParamType.Reference, Path = new string[] { "NutritionOrder.orderer", }, Target = new ResourceType[] { ResourceType.Practitioner, }, XPath = "f:NutritionOrder/f:orderer", Expression = "NutritionOrder.orderer" },
new SearchParamDefinition() { Resource = "NutritionOrder", Name = "status", Description = @"Status of the nutrition order.", Type = SearchParamType.Token, Path = new string[] { "NutritionOrder.status", }, XPath = "f:NutritionOrder/f:status", Expression = "NutritionOrder.status" },
new SearchParamDefinition() { Resource = "NutritionOrder", Name = "supplement", Description = @"Type of supplement product requested", Type = SearchParamType.Token, Path = new string[] { "NutritionOrder.supplement.type", }, XPath = "f:NutritionOrder/f:supplement/f:type", Expression = "NutritionOrder.supplement.type" },
new SearchParamDefinition() { Resource = "Observation", Name = "category", Description = @"The classification of the type of observation", Type = SearchParamType.Token, Path = new string[] { "Observation.category", }, XPath = "f:Observation/f:category", Expression = "Observation.category" },
new SearchParamDefinition() { Resource = "Observation", Name = "code", Description = @"The code of the observation type", Type = SearchParamType.Token, Path = new string[] { "Observation.code", }, XPath = "f:Observation/f:code", Expression = "Observation.code" },
new SearchParamDefinition() { Resource = "Observation", Name = "code-value-[x]", Description = @"Both code and one of the value parameters", Type = SearchParamType.Composite, Path = new string[] { } },
new SearchParamDefinition() { Resource = "Observation", Name = "component-code", Description = @"The component code of the observation type", Type = SearchParamType.Token, Path = new string[] { "Observation.component.code", }, XPath = "f:Observation/f:component/f:code", Expression = "Observation.component.code" },
new SearchParamDefinition() { Resource = "Observation", Name = "component-code-value-[x]", Description = @"Both component code and one of the component value parameters", Type = SearchParamType.Composite, Path = new string[] { } },
new SearchParamDefinition() { Resource = "Observation", Name = "component-data-absent-reason", Description = @"The reason why the expected value in the element Observation.component.value[x] is missing.", Type = SearchParamType.Token, Path = new string[] { "Observation.component.dataAbsentReason", }, XPath = "f:Observation/f:component/f:dataAbsentReason", Expression = "Observation.component.dataAbsentReason" },
new SearchParamDefinition() { Resource = "Observation", Name = "component-value-concept", Description = @"The value of the component observation, if the value is a CodeableConcept", Type = SearchParamType.Token, Path = new string[] { "Observation.component.valueCodeableConcept", }, XPath = "f:Observation/f:component/f:valueCodeableConcept", Expression = "Observation.component.valueCodeableConcept" },
new SearchParamDefinition() { Resource = "Observation", Name = "component-value-quantity", Description = @"The value of the component observation, if the value is a Quantity, or a SampledData (just search on the bounds of the values in sampled data)", Type = SearchParamType.Quantity, Path = new string[] { "Observation.component.valueQuantity", }, XPath = "f:Observation/f:component/f:valueQuantity", Expression = "Observation.component.valueQuantity" },
new SearchParamDefinition() { Resource = "Observation", Name = "component-value-string", Description = @"The value of the component observation, if the value is a string, and also searches in CodeableConcept.text", Type = SearchParamType.String, Path = new string[] { "Observation.component.valueString", }, XPath = "f:Observation/f:component/f:valueString", Expression = "Observation.component.valueString" },
new SearchParamDefinition() { Resource = "Observation", Name = "data-absent-reason", Description = @"The reason why the expected value in the element Observation.value[x] is missing.", Type = SearchParamType.Token, Path = new string[] { "Observation.dataAbsentReason", }, XPath = "f:Observation/f:dataAbsentReason", Expression = "Observation.dataAbsentReason" },
new SearchParamDefinition() { Resource = "Observation", Name = "date", Description = @"Obtained date/time. If the obtained element is a period, a date that falls in the period", Type = SearchParamType.Date, Path = new string[] { "Observation.effectiveDateTime", "Observation.effectivePeriod", }, XPath = "f:Observation/f:effectiveDateTime | f:Observation/f:effectivePeriod", Expression = "Observation.effective[x]" },
new SearchParamDefinition() { Resource = "Observation", Name = "device", Description = @"The Device that generated the observation data.", Type = SearchParamType.Reference, Path = new string[] { "Observation.device", }, Target = new ResourceType[] { ResourceType.Device, ResourceType.DeviceMetric, }, XPath = "f:Observation/f:device", Expression = "Observation.device" },
new SearchParamDefinition() { Resource = "Observation", Name = "encounter", Description = @"Healthcare event related to the observation", Type = SearchParamType.Reference, Path = new string[] { "Observation.encounter", }, Target = new ResourceType[] { ResourceType.Encounter, }, XPath = "f:Observation/f:encounter", Expression = "Observation.encounter" },
new SearchParamDefinition() { Resource = "Observation", Name = "identifier", Description = @"The unique id for a particular observation", Type = SearchParamType.Token, Path = new string[] { "Observation.identifier", }, XPath = "f:Observation/f:identifier", Expression = "Observation.identifier" },
new SearchParamDefinition() { Resource = "Observation", Name = "patient", Description = @"The subject that the observation is about (if patient)", Type = SearchParamType.Reference, Path = new string[] { "Observation.subject", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:Observation/f:subject", Expression = "Observation.subject" },
new SearchParamDefinition() { Resource = "Observation", Name = "performer", Description = @"Who performed the observation", Type = SearchParamType.Reference, Path = new string[] { "Observation.performer", }, Target = new ResourceType[] { ResourceType.Organization, ResourceType.Patient, ResourceType.Practitioner, ResourceType.RelatedPerson, }, XPath = "f:Observation/f:performer", Expression = "Observation.performer" },
new SearchParamDefinition() { Resource = "Observation", Name = "related", Description = @"Related Observations - search on related-type and related-target together", Type = SearchParamType.Composite, Path = new string[] { } },
new SearchParamDefinition() { Resource = "Observation", Name = "related-target", Description = @"Resource that is related to this one", Type = SearchParamType.Reference, Path = new string[] { "Observation.related.target", }, Target = new ResourceType[] { ResourceType.Observation, ResourceType.QuestionnaireResponse, }, XPath = "f:Observation/f:related/f:target", Expression = "Observation.related.target" },
new SearchParamDefinition() { Resource = "Observation", Name = "related-type", Description = @"has-member | derived-from | sequel-to | replaces | qualified-by | interfered-by", Type = SearchParamType.Token, Path = new string[] { "Observation.related.type", }, XPath = "f:Observation/f:related/f:type", Expression = "Observation.related.type" },
new SearchParamDefinition() { Resource = "Observation", Name = "specimen", Description = @"Specimen used for this observation", Type = SearchParamType.Reference, Path = new string[] { "Observation.specimen", }, Target = new ResourceType[] { ResourceType.Specimen, }, XPath = "f:Observation/f:specimen", Expression = "Observation.specimen" },
new SearchParamDefinition() { Resource = "Observation", Name = "status", Description = @"The status of the observation", Type = SearchParamType.Token, Path = new string[] { "Observation.status", }, XPath = "f:Observation/f:status", Expression = "Observation.status" },
new SearchParamDefinition() { Resource = "Observation", Name = "subject", Description = @"The subject that the observation is about", Type = SearchParamType.Reference, Path = new string[] { "Observation.subject", }, Target = new ResourceType[] { ResourceType.Device, ResourceType.Group, ResourceType.Location, ResourceType.Patient, }, XPath = "f:Observation/f:subject", Expression = "Observation.subject" },
new SearchParamDefinition() { Resource = "Observation", Name = "value-concept", Description = @"The value of the observation, if the value is a CodeableConcept", Type = SearchParamType.Token, Path = new string[] { "Observation.valueCodeableConcept", }, XPath = "f:Observation/f:valueCodeableConcept", Expression = "Observation.valueCodeableConcept" },
new SearchParamDefinition() { Resource = "Observation", Name = "value-date", Description = @"The value of the observation, if the value is a date or period of time", Type = SearchParamType.Date, Path = new string[] { "Observation.valueDateTime", "Observation.valuePeriod", }, XPath = "f:Observation/f:valueDateTime | f:Observation/f:valuePeriod", Expression = "Observation.valueDateTime | Observation.valuePeriod" },
new SearchParamDefinition() { Resource = "Observation", Name = "value-quantity", Description = @"The value of the observation, if the value is a Quantity, or a SampledData (just search on the bounds of the values in sampled data)", Type = SearchParamType.Quantity, Path = new string[] { "Observation.valueQuantity", }, XPath = "f:Observation/f:valueQuantity", Expression = "Observation.valueQuantity" },
new SearchParamDefinition() { Resource = "Observation", Name = "value-string", Description = @"The value of the observation, if the value is a string, and also searches in CodeableConcept.text", Type = SearchParamType.String, Path = new string[] { "Observation.valueString", }, XPath = "f:Observation/f:valueString", Expression = "Observation.valueString" },
new SearchParamDefinition() { Resource = "OperationDefinition", Name = "base", Description = @"Marks this as a profile of the base", Type = SearchParamType.Reference, Path = new string[] { "OperationDefinition.base", }, Target = new ResourceType[] { ResourceType.OperationDefinition, }, XPath = "f:OperationDefinition/f:base", Expression = "OperationDefinition.base" },
new SearchParamDefinition() { Resource = "OperationDefinition", Name = "code", Description = @"Name used to invoke the operation", Type = SearchParamType.Token, Path = new string[] { "OperationDefinition.code", }, XPath = "f:OperationDefinition/f:code", Expression = "OperationDefinition.code" },
new SearchParamDefinition() { Resource = "OperationDefinition", Name = "date", Description = @"Date for this version of the operation definition", Type = SearchParamType.Date, Path = new string[] { "OperationDefinition.date", }, XPath = "f:OperationDefinition/f:date", Expression = "OperationDefinition.date" },
new SearchParamDefinition() { Resource = "OperationDefinition", Name = "instance", Description = @"Invoke on an instance?", Type = SearchParamType.Token, Path = new string[] { "OperationDefinition.instance", }, XPath = "f:OperationDefinition/f:instance", Expression = "OperationDefinition.instance" },
new SearchParamDefinition() { Resource = "OperationDefinition", Name = "kind", Description = @"operation | query", Type = SearchParamType.Token, Path = new string[] { "OperationDefinition.kind", }, XPath = "f:OperationDefinition/f:kind", Expression = "OperationDefinition.kind" },
new SearchParamDefinition() { Resource = "OperationDefinition", Name = "name", Description = @"Informal name for this operation", Type = SearchParamType.String, Path = new string[] { "OperationDefinition.name", }, XPath = "f:OperationDefinition/f:name", Expression = "OperationDefinition.name" },
new SearchParamDefinition() { Resource = "OperationDefinition", Name = "profile", Description = @"Profile on the type", Type = SearchParamType.Reference, Path = new string[] { "OperationDefinition.parameter.profile", }, Target = new ResourceType[] { ResourceType.StructureDefinition, }, XPath = "f:OperationDefinition/f:parameter/f:profile", Expression = "OperationDefinition.parameter.profile" },
new SearchParamDefinition() { Resource = "OperationDefinition", Name = "publisher", Description = @"Name of the publisher (Organization or individual)", Type = SearchParamType.String, Path = new string[] { "OperationDefinition.publisher", }, XPath = "f:OperationDefinition/f:publisher", Expression = "OperationDefinition.publisher" },
new SearchParamDefinition() { Resource = "OperationDefinition", Name = "status", Description = @"draft | active | retired", Type = SearchParamType.Token, Path = new string[] { "OperationDefinition.status", }, XPath = "f:OperationDefinition/f:status", Expression = "OperationDefinition.status" },
new SearchParamDefinition() { Resource = "OperationDefinition", Name = "system", Description = @"Invoke at the system level?", Type = SearchParamType.Token, Path = new string[] { "OperationDefinition.system", }, XPath = "f:OperationDefinition/f:system", Expression = "OperationDefinition.system" },
new SearchParamDefinition() { Resource = "OperationDefinition", Name = "type", Description = @"Invoke at resource level for these type", Type = SearchParamType.Token, Path = new string[] { "OperationDefinition.type", }, XPath = "f:OperationDefinition/f:type", Expression = "OperationDefinition.type" },
new SearchParamDefinition() { Resource = "OperationDefinition", Name = "url", Description = @"Logical URL to reference this operation definition", Type = SearchParamType.Uri, Path = new string[] { "OperationDefinition.url", }, XPath = "f:OperationDefinition/f:url", Expression = "OperationDefinition.url" },
new SearchParamDefinition() { Resource = "OperationDefinition", Name = "version", Description = @"Logical id for this version of the operation definition", Type = SearchParamType.Token, Path = new string[] { "OperationDefinition.version", }, XPath = "f:OperationDefinition/f:version", Expression = "OperationDefinition.version" },
new SearchParamDefinition() { Resource = "Order", Name = "date", Description = @"When the order was made", Type = SearchParamType.Date, Path = new string[] { "Order.date", }, XPath = "f:Order/f:date", Expression = "Order.date" },
new SearchParamDefinition() { Resource = "Order", Name = "detail", Description = @"What action is being ordered", Type = SearchParamType.Reference, Path = new string[] { "Order.detail", }, Target = new ResourceType[] { ResourceType.Account, ResourceType.AllergyIntolerance, ResourceType.Appointment, ResourceType.AppointmentResponse, ResourceType.AuditEvent, ResourceType.Basic, ResourceType.Binary, ResourceType.BodySite, ResourceType.Bundle, ResourceType.CarePlan, ResourceType.Claim, ResourceType.ClaimResponse, ResourceType.ClinicalImpression, ResourceType.Communication, ResourceType.CommunicationRequest, ResourceType.Composition, ResourceType.ConceptMap, ResourceType.Condition, ResourceType.Conformance, ResourceType.Contract, ResourceType.Coverage, ResourceType.DataElement, ResourceType.DetectedIssue, ResourceType.Device, ResourceType.DeviceComponent, ResourceType.DeviceMetric, ResourceType.DeviceUseRequest, ResourceType.DeviceUseStatement, ResourceType.DiagnosticOrder, ResourceType.DiagnosticReport, ResourceType.DocumentManifest, ResourceType.DocumentReference, ResourceType.EligibilityRequest, ResourceType.EligibilityResponse, ResourceType.Encounter, ResourceType.EnrollmentRequest, ResourceType.EnrollmentResponse, ResourceType.EpisodeOfCare, ResourceType.ExplanationOfBenefit, ResourceType.FamilyMemberHistory, ResourceType.Flag, ResourceType.Goal, ResourceType.Group, ResourceType.HealthcareService, ResourceType.ImagingObjectSelection, ResourceType.ImagingStudy, ResourceType.Immunization, ResourceType.ImmunizationRecommendation, ResourceType.ImplementationGuide, ResourceType.List, ResourceType.Location, ResourceType.Media, ResourceType.Medication, ResourceType.MedicationAdministration, ResourceType.MedicationDispense, ResourceType.MedicationOrder, ResourceType.MedicationStatement, ResourceType.MessageHeader, ResourceType.NamingSystem, ResourceType.NutritionOrder, ResourceType.Observation, ResourceType.OperationDefinition, ResourceType.OperationOutcome, ResourceType.Order, ResourceType.OrderResponse, ResourceType.Organization, ResourceType.Patient, ResourceType.PaymentNotice, ResourceType.PaymentReconciliation, ResourceType.Person, ResourceType.Practitioner, ResourceType.Procedure, ResourceType.ProcedureRequest, ResourceType.ProcessRequest, ResourceType.ProcessResponse, ResourceType.Provenance, ResourceType.Questionnaire, ResourceType.QuestionnaireResponse, ResourceType.ReferralRequest, ResourceType.RelatedPerson, ResourceType.RiskAssessment, ResourceType.Schedule, ResourceType.SearchParameter, ResourceType.Slot, ResourceType.Specimen, ResourceType.StructureDefinition, ResourceType.Subscription, ResourceType.Substance, ResourceType.SupplyDelivery, ResourceType.SupplyRequest, ResourceType.TestScript, ResourceType.ValueSet, ResourceType.VisionPrescription, }, XPath = "f:Order/f:detail", Expression = "Order.detail" },
new SearchParamDefinition() { Resource = "Order", Name = "identifier", Description = @"Instance id from source, target, and/or others", Type = SearchParamType.Token, Path = new string[] { "Order.identifier", }, XPath = "f:Order/f:identifier", Expression = "Order.identifier" },
new SearchParamDefinition() { Resource = "Order", Name = "patient", Description = @"Patient this order is about", Type = SearchParamType.Reference, Path = new string[] { "Order.subject", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:Order/f:subject", Expression = "Order.subject" },
new SearchParamDefinition() { Resource = "Order", Name = "source", Description = @"Who initiated the order", Type = SearchParamType.Reference, Path = new string[] { "Order.source", }, Target = new ResourceType[] { ResourceType.Organization, ResourceType.Practitioner, }, XPath = "f:Order/f:source", Expression = "Order.source" },
new SearchParamDefinition() { Resource = "Order", Name = "subject", Description = @"Patient this order is about", Type = SearchParamType.Reference, Path = new string[] { "Order.subject", }, Target = new ResourceType[] { ResourceType.Device, ResourceType.Group, ResourceType.Patient, ResourceType.Substance, }, XPath = "f:Order/f:subject", Expression = "Order.subject" },
new SearchParamDefinition() { Resource = "Order", Name = "target", Description = @"Who is intended to fulfill the order", Type = SearchParamType.Reference, Path = new string[] { "Order.target", }, Target = new ResourceType[] { ResourceType.Device, ResourceType.Organization, ResourceType.Practitioner, }, XPath = "f:Order/f:target", Expression = "Order.target" },
new SearchParamDefinition() { Resource = "Order", Name = "when", Description = @"A formal schedule", Type = SearchParamType.Date, Path = new string[] { "Order.when.schedule", }, XPath = "f:Order/f:when/f:schedule", Expression = "Order.when.schedule" },
new SearchParamDefinition() { Resource = "Order", Name = "when_code", Description = @"Code specifies when request should be done. The code may simply be a priority code", Type = SearchParamType.Token, Path = new string[] { "Order.when.code", }, XPath = "f:Order/f:when/f:code", Expression = "Order.when.code" },
new SearchParamDefinition() { Resource = "OrderResponse", Name = "code", Description = @"pending | review | rejected | error | accepted | cancelled | replaced | aborted | completed", Type = SearchParamType.Token, Path = new string[] { "OrderResponse.orderStatus", }, XPath = "f:OrderResponse/f:orderStatus", Expression = "OrderResponse.orderStatus" },
new SearchParamDefinition() { Resource = "OrderResponse", Name = "date", Description = @"When the response was made", Type = SearchParamType.Date, Path = new string[] { "OrderResponse.date", }, XPath = "f:OrderResponse/f:date", Expression = "OrderResponse.date" },
new SearchParamDefinition() { Resource = "OrderResponse", Name = "fulfillment", Description = @"Details of the outcome of performing the order", Type = SearchParamType.Reference, Path = new string[] { "OrderResponse.fulfillment", }, Target = new ResourceType[] { ResourceType.Account, ResourceType.AllergyIntolerance, ResourceType.Appointment, ResourceType.AppointmentResponse, ResourceType.AuditEvent, ResourceType.Basic, ResourceType.Binary, ResourceType.BodySite, ResourceType.Bundle, ResourceType.CarePlan, ResourceType.Claim, ResourceType.ClaimResponse, ResourceType.ClinicalImpression, ResourceType.Communication, ResourceType.CommunicationRequest, ResourceType.Composition, ResourceType.ConceptMap, ResourceType.Condition, ResourceType.Conformance, ResourceType.Contract, ResourceType.Coverage, ResourceType.DataElement, ResourceType.DetectedIssue, ResourceType.Device, ResourceType.DeviceComponent, ResourceType.DeviceMetric, ResourceType.DeviceUseRequest, ResourceType.DeviceUseStatement, ResourceType.DiagnosticOrder, ResourceType.DiagnosticReport, ResourceType.DocumentManifest, ResourceType.DocumentReference, ResourceType.EligibilityRequest, ResourceType.EligibilityResponse, ResourceType.Encounter, ResourceType.EnrollmentRequest, ResourceType.EnrollmentResponse, ResourceType.EpisodeOfCare, ResourceType.ExplanationOfBenefit, ResourceType.FamilyMemberHistory, ResourceType.Flag, ResourceType.Goal, ResourceType.Group, ResourceType.HealthcareService, ResourceType.ImagingObjectSelection, ResourceType.ImagingStudy, ResourceType.Immunization, ResourceType.ImmunizationRecommendation, ResourceType.ImplementationGuide, ResourceType.List, ResourceType.Location, ResourceType.Media, ResourceType.Medication, ResourceType.MedicationAdministration, ResourceType.MedicationDispense, ResourceType.MedicationOrder, ResourceType.MedicationStatement, ResourceType.MessageHeader, ResourceType.NamingSystem, ResourceType.NutritionOrder, ResourceType.Observation, ResourceType.OperationDefinition, ResourceType.OperationOutcome, ResourceType.Order, ResourceType.OrderResponse, ResourceType.Organization, ResourceType.Patient, ResourceType.PaymentNotice, ResourceType.PaymentReconciliation, ResourceType.Person, ResourceType.Practitioner, ResourceType.Procedure, ResourceType.ProcedureRequest, ResourceType.ProcessRequest, ResourceType.ProcessResponse, ResourceType.Provenance, ResourceType.Questionnaire, ResourceType.QuestionnaireResponse, ResourceType.ReferralRequest, ResourceType.RelatedPerson, ResourceType.RiskAssessment, ResourceType.Schedule, ResourceType.SearchParameter, ResourceType.Slot, ResourceType.Specimen, ResourceType.StructureDefinition, ResourceType.Subscription, ResourceType.Substance, ResourceType.SupplyDelivery, ResourceType.SupplyRequest, ResourceType.TestScript, ResourceType.ValueSet, ResourceType.VisionPrescription, }, XPath = "f:OrderResponse/f:fulfillment", Expression = "OrderResponse.fulfillment" },
new SearchParamDefinition() { Resource = "OrderResponse", Name = "identifier", Description = @"Identifiers assigned to this order by the orderer or by the receiver", Type = SearchParamType.Token, Path = new string[] { "OrderResponse.identifier", }, XPath = "f:OrderResponse/f:identifier", Expression = "OrderResponse.identifier" },
new SearchParamDefinition() { Resource = "OrderResponse", Name = "request", Description = @"The order that this is a response to", Type = SearchParamType.Reference, Path = new string[] { "OrderResponse.request", }, Target = new ResourceType[] { ResourceType.Order, }, XPath = "f:OrderResponse/f:request", Expression = "OrderResponse.request" },
new SearchParamDefinition() { Resource = "OrderResponse", Name = "who", Description = @"Who made the response", Type = SearchParamType.Reference, Path = new string[] { "OrderResponse.who", }, Target = new ResourceType[] { ResourceType.Device, ResourceType.Organization, ResourceType.Practitioner, }, XPath = "f:OrderResponse/f:who", Expression = "OrderResponse.who" },
new SearchParamDefinition() { Resource = "Organization", Name = "active", Description = @"Whether the organization's record is active", Type = SearchParamType.Token, Path = new string[] { "Organization.active", }, XPath = "f:Organization/f:active", Expression = "Organization.active" },
new SearchParamDefinition() { Resource = "Organization", Name = "address", Description = @"A (part of the) address of the Organization", Type = SearchParamType.String, Path = new string[] { "Organization.address", }, XPath = "f:Organization/f:address", Expression = "Organization.address" },
new SearchParamDefinition() { Resource = "Organization", Name = "address-city", Description = @"A city specified in an address", Type = SearchParamType.String, Path = new string[] { "Organization.address.city", }, XPath = "f:Organization/f:address/f:city", Expression = "Organization.address.city" },
new SearchParamDefinition() { Resource = "Organization", Name = "address-country", Description = @"A country specified in an address", Type = SearchParamType.String, Path = new string[] { "Organization.address.country", }, XPath = "f:Organization/f:address/f:country", Expression = "Organization.address.country" },
new SearchParamDefinition() { Resource = "Organization", Name = "address-postalcode", Description = @"A postal code specified in an address", Type = SearchParamType.String, Path = new string[] { "Organization.address.postalCode", }, XPath = "f:Organization/f:address/f:postalCode", Expression = "Organization.address.postalCode" },
new SearchParamDefinition() { Resource = "Organization", Name = "address-state", Description = @"A state specified in an address", Type = SearchParamType.String, Path = new string[] { "Organization.address.state", }, XPath = "f:Organization/f:address/f:state", Expression = "Organization.address.state" },
new SearchParamDefinition() { Resource = "Organization", Name = "address-use", Description = @"A use code specified in an address", Type = SearchParamType.Token, Path = new string[] { "Organization.address.use", }, XPath = "f:Organization/f:address/f:use", Expression = "Organization.address.use" },
new SearchParamDefinition() { Resource = "Organization", Name = "identifier", Description = @"Any identifier for the organization (not the accreditation issuer's identifier)", Type = SearchParamType.Token, Path = new string[] { "Organization.identifier", }, XPath = "f:Organization/f:identifier", Expression = "Organization.identifier" },
new SearchParamDefinition() { Resource = "Organization", Name = "name", Description = @"A portion of the organization's name", Type = SearchParamType.String, Path = new string[] { "Organization.name", }, XPath = "f:Organization/f:name", Expression = "Organization.name" },
new SearchParamDefinition() { Resource = "Organization", Name = "partof", Description = @"Search all organizations that are part of the given organization", Type = SearchParamType.Reference, Path = new string[] { "Organization.partOf", }, Target = new ResourceType[] { ResourceType.Organization, }, XPath = "f:Organization/f:partOf", Expression = "Organization.partOf" },
new SearchParamDefinition() { Resource = "Organization", Name = "phonetic", Description = @"A portion of the organization's name using some kind of phonetic matching algorithm", Type = SearchParamType.String, Path = new string[] { "Organization.name", }, XPath = "f:Organization/f:name", Expression = "Organization.name" },
new SearchParamDefinition() { Resource = "Organization", Name = "type", Description = @"A code for the type of organization", Type = SearchParamType.Token, Path = new string[] { "Organization.type", }, XPath = "f:Organization/f:type", Expression = "Organization.type" },
new SearchParamDefinition() { Resource = "Patient", Name = "active", Description = @"Whether the patient record is active", Type = SearchParamType.Token, Path = new string[] { "Patient.active", }, XPath = "f:Patient/f:active", Expression = "Patient.active" },
new SearchParamDefinition() { Resource = "Patient", Name = "address", Description = @"An address in any kind of address/part of the patient", Type = SearchParamType.String, Path = new string[] { "Patient.address", }, XPath = "f:Patient/f:address", Expression = "Patient.address" },
new SearchParamDefinition() { Resource = "Patient", Name = "address-city", Description = @"A city specified in an address", Type = SearchParamType.String, Path = new string[] { "Patient.address.city", }, XPath = "f:Patient/f:address/f:city", Expression = "Patient.address.city" },
new SearchParamDefinition() { Resource = "Patient", Name = "address-country", Description = @"A country specified in an address", Type = SearchParamType.String, Path = new string[] { "Patient.address.country", }, XPath = "f:Patient/f:address/f:country", Expression = "Patient.address.country" },
new SearchParamDefinition() { Resource = "Patient", Name = "address-postalcode", Description = @"A postalCode specified in an address", Type = SearchParamType.String, Path = new string[] { "Patient.address.postalCode", }, XPath = "f:Patient/f:address/f:postalCode", Expression = "Patient.address.postalCode" },
new SearchParamDefinition() { Resource = "Patient", Name = "address-state", Description = @"A state specified in an address", Type = SearchParamType.String, Path = new string[] { "Patient.address.state", }, XPath = "f:Patient/f:address/f:state", Expression = "Patient.address.state" },
new SearchParamDefinition() { Resource = "Patient", Name = "address-use", Description = @"A use code specified in an address", Type = SearchParamType.Token, Path = new string[] { "Patient.address.use", }, XPath = "f:Patient/f:address/f:use", Expression = "Patient.address.use" },
new SearchParamDefinition() { Resource = "Patient", Name = "animal-breed", Description = @"The breed for animal patients", Type = SearchParamType.Token, Path = new string[] { "Patient.animal.breed", }, XPath = "f:Patient/f:animal/f:breed", Expression = "Patient.animal.breed" },
new SearchParamDefinition() { Resource = "Patient", Name = "animal-species", Description = @"The species for animal patients", Type = SearchParamType.Token, Path = new string[] { "Patient.animal.species", }, XPath = "f:Patient/f:animal/f:species", Expression = "Patient.animal.species" },
new SearchParamDefinition() { Resource = "Patient", Name = "birthdate", Description = @"The patient's date of birth", Type = SearchParamType.Date, Path = new string[] { "Patient.birthDate", }, XPath = "f:Patient/f:birthDate", Expression = "Patient.birthDate" },
new SearchParamDefinition() { Resource = "Patient", Name = "careprovider", Description = @"Patient's nominated care provider, could be a care manager, not the organization that manages the record", Type = SearchParamType.Reference, Path = new string[] { "Patient.careProvider", }, Target = new ResourceType[] { ResourceType.Organization, ResourceType.Practitioner, }, XPath = "f:Patient/f:careProvider", Expression = "Patient.careProvider" },
new SearchParamDefinition() { Resource = "Patient", Name = "deathdate", Description = @"The date of death has been provided and satisfies this search value", Type = SearchParamType.Date, Path = new string[] { "Patient.deceasedDateTime", }, XPath = "f:Patient/f:deceasedDateTime", Expression = "Patient.deceasedDateTime" },
new SearchParamDefinition() { Resource = "Patient", Name = "deceased", Description = @"This patient has been marked as deceased, or as a death date entered", Type = SearchParamType.Token, Path = new string[] { "Patient.deceasedBoolean", "Patient.deceasedDateTime", }, XPath = "f:Patient/f:deceasedBoolean | f:Patient/f:deceasedDateTime", Expression = "Patient.deceased[x]" },
new SearchParamDefinition() { Resource = "Patient", Name = "email", Description = @"A value in an email contact", Type = SearchParamType.Token, Path = new string[] { "Patient.telecom[system.@value='email']", }, XPath = "f:Patient/f:telecom[system/@value='email']", Expression = "Patient.telecom.where(system='email')" },
new SearchParamDefinition() { Resource = "Patient", Name = "family", Description = @"A portion of the family name of the patient", Type = SearchParamType.String, Path = new string[] { "Patient.name.family", }, XPath = "f:Patient/f:name/f:family", Expression = "Patient.name.family" },
new SearchParamDefinition() { Resource = "Patient", Name = "gender", Description = @"Gender of the patient", Type = SearchParamType.Token, Path = new string[] { "Patient.gender", }, XPath = "f:Patient/f:gender", Expression = "Patient.gender" },
new SearchParamDefinition() { Resource = "Patient", Name = "given", Description = @"A portion of the given name of the patient", Type = SearchParamType.String, Path = new string[] { "Patient.name.given", }, XPath = "f:Patient/f:name/f:given", Expression = "Patient.name.given" },
new SearchParamDefinition() { Resource = "Patient", Name = "identifier", Description = @"A patient identifier", Type = SearchParamType.Token, Path = new string[] { "Patient.identifier", }, XPath = "f:Patient/f:identifier", Expression = "Patient.identifier" },
new SearchParamDefinition() { Resource = "Patient", Name = "language", Description = @"Language code (irrespective of use value)", Type = SearchParamType.Token, Path = new string[] { "Patient.communication.language", }, XPath = "f:Patient/f:communication/f:language", Expression = "Patient.communication.language" },
new SearchParamDefinition() { Resource = "Patient", Name = "link", Description = @"All patients linked to the given patient", Type = SearchParamType.Reference, Path = new string[] { "Patient.link.other", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:Patient/f:link/f:other", Expression = "Patient.link.other" },
new SearchParamDefinition() { Resource = "Patient", Name = "name", Description = @"A portion of either family or given name of the patient", Type = SearchParamType.String, Path = new string[] { "Patient.name", }, XPath = "f:Patient/f:name", Expression = "Patient.name" },
new SearchParamDefinition() { Resource = "Patient", Name = "organization", Description = @"The organization at which this person is a patient", Type = SearchParamType.Reference, Path = new string[] { "Patient.managingOrganization", }, Target = new ResourceType[] { ResourceType.Organization, }, XPath = "f:Patient/f:managingOrganization", Expression = "Patient.managingOrganization" },
new SearchParamDefinition() { Resource = "Patient", Name = "phone", Description = @"A value in a phone contact", Type = SearchParamType.Token, Path = new string[] { "Patient.telecom[system.@value='phone']", }, XPath = "f:Patient/f:telecom[system/@value='phone']", Expression = "Patient.telecom.where(system='phone')" },
new SearchParamDefinition() { Resource = "Patient", Name = "phonetic", Description = @"A portion of either family or given name using some kind of phonetic matching algorithm", Type = SearchParamType.String, Path = new string[] { "Patient.name", }, XPath = "f:Patient/f:name", Expression = "Patient.name" },
new SearchParamDefinition() { Resource = "Patient", Name = "telecom", Description = @"The value in any kind of telecom details of the patient", Type = SearchParamType.Token, Path = new string[] { "Patient.telecom", }, XPath = "f:Patient/f:telecom", Expression = "Patient.telecom" },
new SearchParamDefinition() { Resource = "Patient", Name = "race", Description = @"Returns patients with a race extension matching the specified code.", Type = SearchParamType.Token, Path = new string[] { "Patient.extension[@url='http:..hl7.org.fhir.StructureDefinition.us-core-race']", "Patient.extension[@url='http:..hl7.org.fhir.StructureDefinition.us-core-race']", }, XPath = "f:Patient/f:extension[@url='http://hl7.org/fhir/StructureDefinition/us-core-race'] | f:Patient/f:extension[@url='http://hl7.org/fhir/StructureDefinition/us-core-race']" },
new SearchParamDefinition() { Resource = "Patient", Name = "ethnicity", Description = @"Returns patients with an ethnicity extension matching the specified code.", Type = SearchParamType.Token, Path = new string[] { "Patient.extension[@url='http:..hl7.org.fhir.StructureDefinition.us-core-ethnicity']", "Patient.extension[@url='http:..hl7.org.fhir.StructureDefinition.us-core-ethnicity']", }, XPath = "f:Patient/f:extension[@url='http://hl7.org/fhir/StructureDefinition/us-core-ethnicity'] | f:Patient/f:extension[@url='http://hl7.org/fhir/StructureDefinition/us-core-ethnicity']" },
new SearchParamDefinition() { Resource = "PaymentNotice", Name = "identifier", Description = @"The business identifier of the Eligibility", Type = SearchParamType.Token, Path = new string[] { "PaymentNotice.identifier", }, XPath = "f:PaymentNotice/f:identifier", Expression = "PaymentNotice.identifier" },
new SearchParamDefinition() { Resource = "PaymentReconciliation", Name = "identifier", Description = @"The business identifier of the Explanation of Benefit", Type = SearchParamType.Token, Path = new string[] { "PaymentReconciliation.identifier", }, XPath = "f:PaymentReconciliation/f:identifier", Expression = "PaymentReconciliation.identifier" },
new SearchParamDefinition() { Resource = "Person", Name = "address", Description = @"An address in any kind of address/part", Type = SearchParamType.String, Path = new string[] { "Person.address", }, XPath = "f:Person/f:address", Expression = "Person.address" },
new SearchParamDefinition() { Resource = "Person", Name = "address-city", Description = @"A city specified in an address", Type = SearchParamType.String, Path = new string[] { "Person.address.city", }, XPath = "f:Person/f:address/f:city", Expression = "Person.address.city" },
new SearchParamDefinition() { Resource = "Person", Name = "address-country", Description = @"A country specified in an address", Type = SearchParamType.String, Path = new string[] { "Person.address.country", }, XPath = "f:Person/f:address/f:country", Expression = "Person.address.country" },
new SearchParamDefinition() { Resource = "Person", Name = "address-postalcode", Description = @"A postal code specified in an address", Type = SearchParamType.String, Path = new string[] { "Person.address.postalCode", }, XPath = "f:Person/f:address/f:postalCode", Expression = "Person.address.postalCode" },
new SearchParamDefinition() { Resource = "Person", Name = "address-state", Description = @"A state specified in an address", Type = SearchParamType.String, Path = new string[] { "Person.address.state", }, XPath = "f:Person/f:address/f:state", Expression = "Person.address.state" },
new SearchParamDefinition() { Resource = "Person", Name = "address-use", Description = @"A use code specified in an address", Type = SearchParamType.Token, Path = new string[] { "Person.address.use", }, XPath = "f:Person/f:address/f:use", Expression = "Person.address.use" },
new SearchParamDefinition() { Resource = "Person", Name = "birthdate", Description = @"The person's date of birth", Type = SearchParamType.Date, Path = new string[] { "Person.birthDate", }, XPath = "f:Person/f:birthDate", Expression = "Person.birthDate" },
new SearchParamDefinition() { Resource = "Person", Name = "email", Description = @"A value in an email contact", Type = SearchParamType.Token, Path = new string[] { "Person.telecom[system.@value='email']", }, XPath = "f:Person/f:telecom[system/@value='email']", Expression = "Person.telecom.where(system='email')" },
new SearchParamDefinition() { Resource = "Person", Name = "gender", Description = @"The gender of the person", Type = SearchParamType.Token, Path = new string[] { "Person.gender", }, XPath = "f:Person/f:gender", Expression = "Person.gender" },
new SearchParamDefinition() { Resource = "Person", Name = "identifier", Description = @"A person Identifier", Type = SearchParamType.Token, Path = new string[] { "Person.identifier", }, XPath = "f:Person/f:identifier", Expression = "Person.identifier" },
new SearchParamDefinition() { Resource = "Person", Name = "link", Description = @"Any link has this Patient, Person, RelatedPerson or Practitioner reference", Type = SearchParamType.Reference, Path = new string[] { "Person.link.target", }, Target = new ResourceType[] { ResourceType.Patient, ResourceType.Person, ResourceType.Practitioner, ResourceType.RelatedPerson, }, XPath = "f:Person/f:link/f:target", Expression = "Person.link.target" },
new SearchParamDefinition() { Resource = "Person", Name = "name", Description = @"A portion of name in any name part", Type = SearchParamType.String, Path = new string[] { "Person.name", }, XPath = "f:Person/f:name", Expression = "Person.name" },
new SearchParamDefinition() { Resource = "Person", Name = "organization", Description = @"The organization at which this person record is being managed", Type = SearchParamType.Reference, Path = new string[] { "Person.managingOrganization", }, Target = new ResourceType[] { ResourceType.Organization, }, XPath = "f:Person/f:managingOrganization", Expression = "Person.managingOrganization" },
new SearchParamDefinition() { Resource = "Person", Name = "patient", Description = @"The Person links to this Patient", Type = SearchParamType.Reference, Path = new string[] { "Person.link.target", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:Person/f:link/f:target", Expression = "Person.link.target" },
new SearchParamDefinition() { Resource = "Person", Name = "phone", Description = @"A value in a phone contact", Type = SearchParamType.Token, Path = new string[] { "Person.telecom[system.@value='phone']", }, XPath = "f:Person/f:telecom[system/@value='phone']", Expression = "Person.telecom.where(system='phone')" },
new SearchParamDefinition() { Resource = "Person", Name = "phonetic", Description = @"A portion of name using some kind of phonetic matching algorithm", Type = SearchParamType.String, Path = new string[] { "Person.name", }, XPath = "f:Person/f:name", Expression = "Person.name" },
new SearchParamDefinition() { Resource = "Person", Name = "practitioner", Description = @"The Person links to this Practitioner", Type = SearchParamType.Reference, Path = new string[] { "Person.link.target", }, Target = new ResourceType[] { ResourceType.Practitioner, }, XPath = "f:Person/f:link/f:target", Expression = "Person.link.target" },
new SearchParamDefinition() { Resource = "Person", Name = "relatedperson", Description = @"The Person links to this RelatedPerson", Type = SearchParamType.Reference, Path = new string[] { "Person.link.target", }, Target = new ResourceType[] { ResourceType.RelatedPerson, }, XPath = "f:Person/f:link/f:target", Expression = "Person.link.target" },
new SearchParamDefinition() { Resource = "Person", Name = "telecom", Description = @"The value in any kind of contact", Type = SearchParamType.Token, Path = new string[] { "Person.telecom", }, XPath = "f:Person/f:telecom", Expression = "Person.telecom" },
new SearchParamDefinition() { Resource = "Practitioner", Name = "address", Description = @"An address in any kind of address/part", Type = SearchParamType.String, Path = new string[] { "Practitioner.address", }, XPath = "f:Practitioner/f:address", Expression = "Practitioner.address" },
new SearchParamDefinition() { Resource = "Practitioner", Name = "address-city", Description = @"A city specified in an address", Type = SearchParamType.String, Path = new string[] { "Practitioner.address.city", }, XPath = "f:Practitioner/f:address/f:city", Expression = "Practitioner.address.city" },
new SearchParamDefinition() { Resource = "Practitioner", Name = "address-country", Description = @"A country specified in an address", Type = SearchParamType.String, Path = new string[] { "Practitioner.address.country", }, XPath = "f:Practitioner/f:address/f:country", Expression = "Practitioner.address.country" },
new SearchParamDefinition() { Resource = "Practitioner", Name = "address-postalcode", Description = @"A postalCode specified in an address", Type = SearchParamType.String, Path = new string[] { "Practitioner.address.postalCode", }, XPath = "f:Practitioner/f:address/f:postalCode", Expression = "Practitioner.address.postalCode" },
new SearchParamDefinition() { Resource = "Practitioner", Name = "address-state", Description = @"A state specified in an address", Type = SearchParamType.String, Path = new string[] { "Practitioner.address.state", }, XPath = "f:Practitioner/f:address/f:state", Expression = "Practitioner.address.state" },
new SearchParamDefinition() { Resource = "Practitioner", Name = "address-use", Description = @"A use code specified in an address", Type = SearchParamType.Token, Path = new string[] { "Practitioner.address.use", }, XPath = "f:Practitioner/f:address/f:use", Expression = "Practitioner.address.use" },
new SearchParamDefinition() { Resource = "Practitioner", Name = "communication", Description = @"One of the languages that the practitioner can communicate with", Type = SearchParamType.Token, Path = new string[] { "Practitioner.communication", }, XPath = "f:Practitioner/f:communication", Expression = "Practitioner.communication" },
new SearchParamDefinition() { Resource = "Practitioner", Name = "email", Description = @"A value in an email contact", Type = SearchParamType.Token, Path = new string[] { "Practitioner.telecom[system.@value='email']", }, XPath = "f:Practitioner/f:telecom[system/@value='email']", Expression = "Practitioner.telecom.where(system='email')" },
new SearchParamDefinition() { Resource = "Practitioner", Name = "family", Description = @"A portion of the family name", Type = SearchParamType.String, Path = new string[] { "Practitioner.name.family", }, XPath = "f:Practitioner/f:name/f:family", Expression = "Practitioner.name.family" },
new SearchParamDefinition() { Resource = "Practitioner", Name = "gender", Description = @"Gender of the practitioner", Type = SearchParamType.Token, Path = new string[] { "Practitioner.gender", }, XPath = "f:Practitioner/f:gender", Expression = "Practitioner.gender" },
new SearchParamDefinition() { Resource = "Practitioner", Name = "given", Description = @"A portion of the given name", Type = SearchParamType.String, Path = new string[] { "Practitioner.name.given", }, XPath = "f:Practitioner/f:name/f:given", Expression = "Practitioner.name.given" },
new SearchParamDefinition() { Resource = "Practitioner", Name = "identifier", Description = @"A practitioner's Identifier", Type = SearchParamType.Token, Path = new string[] { "Practitioner.identifier", }, XPath = "f:Practitioner/f:identifier", Expression = "Practitioner.identifier" },
new SearchParamDefinition() { Resource = "Practitioner", Name = "location", Description = @"One of the locations at which this practitioner provides care", Type = SearchParamType.Reference, Path = new string[] { "Practitioner.practitionerRole.location", }, Target = new ResourceType[] { ResourceType.Location, }, XPath = "f:Practitioner/f:practitionerRole/f:location", Expression = "Practitioner.practitionerRole.location" },
new SearchParamDefinition() { Resource = "Practitioner", Name = "name", Description = @"A portion of either family or given name", Type = SearchParamType.String, Path = new string[] { "Practitioner.name", }, XPath = "f:Practitioner/f:name", Expression = "Practitioner.name" },
new SearchParamDefinition() { Resource = "Practitioner", Name = "organization", Description = @"The identity of the organization the practitioner represents / acts on behalf of", Type = SearchParamType.Reference, Path = new string[] { "Practitioner.practitionerRole.managingOrganization", }, Target = new ResourceType[] { ResourceType.Organization, }, XPath = "f:Practitioner/f:practitionerRole/f:managingOrganization", Expression = "Practitioner.practitionerRole.managingOrganization" },
new SearchParamDefinition() { Resource = "Practitioner", Name = "phone", Description = @"A value in a phone contact", Type = SearchParamType.Token, Path = new string[] { "Practitioner.telecom[system.@value='phone']", }, XPath = "f:Practitioner/f:telecom[system/@value='phone']", Expression = "Practitioner.telecom.where(system='phone')" },
new SearchParamDefinition() { Resource = "Practitioner", Name = "phonetic", Description = @"A portion of either family or given name using some kind of phonetic matching algorithm", Type = SearchParamType.String, Path = new string[] { "Practitioner.name", }, XPath = "f:Practitioner/f:name", Expression = "Practitioner.name" },
new SearchParamDefinition() { Resource = "Practitioner", Name = "role", Description = @"The practitioner can perform this role at for the organization", Type = SearchParamType.Token, Path = new string[] { "Practitioner.practitionerRole.role", }, XPath = "f:Practitioner/f:practitionerRole/f:role", Expression = "Practitioner.practitionerRole.role" },
new SearchParamDefinition() { Resource = "Practitioner", Name = "specialty", Description = @"The practitioner has this specialty at an organization", Type = SearchParamType.Token, Path = new string[] { "Practitioner.practitionerRole.specialty", }, XPath = "f:Practitioner/f:practitionerRole/f:specialty", Expression = "Practitioner.practitionerRole.specialty" },
new SearchParamDefinition() { Resource = "Practitioner", Name = "telecom", Description = @"The value in any kind of contact", Type = SearchParamType.Token, Path = new string[] { "Practitioner.telecom", }, XPath = "f:Practitioner/f:telecom", Expression = "Practitioner.telecom" },
new SearchParamDefinition() { Resource = "Procedure", Name = "code", Description = @"A code to identify a procedure", Type = SearchParamType.Token, Path = new string[] { "Procedure.code", }, XPath = "f:Procedure/f:code", Expression = "Procedure.code" },
new SearchParamDefinition() { Resource = "Procedure", Name = "date", Description = @"Date/Period the procedure was performed", Type = SearchParamType.Date, Path = new string[] { "Procedure.performedDateTime", "Procedure.performedPeriod", }, XPath = "f:Procedure/f:performedDateTime | f:Procedure/f:performedPeriod", Expression = "Procedure.performed[x]" },
new SearchParamDefinition() { Resource = "Procedure", Name = "encounter", Description = @"The encounter associated with the procedure", Type = SearchParamType.Reference, Path = new string[] { "Procedure.encounter", }, Target = new ResourceType[] { ResourceType.Encounter, }, XPath = "f:Procedure/f:encounter", Expression = "Procedure.encounter" },
new SearchParamDefinition() { Resource = "Procedure", Name = "identifier", Description = @"A unique identifier for a procedure", Type = SearchParamType.Token, Path = new string[] { "Procedure.identifier", }, XPath = "f:Procedure/f:identifier", Expression = "Procedure.identifier" },
new SearchParamDefinition() { Resource = "Procedure", Name = "location", Description = @"Where the procedure happened", Type = SearchParamType.Reference, Path = new string[] { "Procedure.location", }, Target = new ResourceType[] { ResourceType.Location, }, XPath = "f:Procedure/f:location", Expression = "Procedure.location" },
new SearchParamDefinition() { Resource = "Procedure", Name = "patient", Description = @"Search by subject - a patient", Type = SearchParamType.Reference, Path = new string[] { "Procedure.subject", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:Procedure/f:subject", Expression = "Procedure.subject" },
new SearchParamDefinition() { Resource = "Procedure", Name = "performer", Description = @"The reference to the practitioner", Type = SearchParamType.Reference, Path = new string[] { "Procedure.performer.actor", }, Target = new ResourceType[] { ResourceType.Organization, ResourceType.Patient, ResourceType.Practitioner, ResourceType.RelatedPerson, }, XPath = "f:Procedure/f:performer/f:actor", Expression = "Procedure.performer.actor" },
new SearchParamDefinition() { Resource = "Procedure", Name = "subject", Description = @"Search by subject", Type = SearchParamType.Reference, Path = new string[] { "Procedure.subject", }, Target = new ResourceType[] { ResourceType.Group, ResourceType.Patient, }, XPath = "f:Procedure/f:subject", Expression = "Procedure.subject" },
new SearchParamDefinition() { Resource = "ProcedureRequest", Name = "encounter", Description = @"Encounter request created during", Type = SearchParamType.Reference, Path = new string[] { "ProcedureRequest.encounter", }, Target = new ResourceType[] { ResourceType.Encounter, }, XPath = "f:ProcedureRequest/f:encounter", Expression = "ProcedureRequest.encounter" },
new SearchParamDefinition() { Resource = "ProcedureRequest", Name = "identifier", Description = @"A unique identifier of the Procedure Request", Type = SearchParamType.Token, Path = new string[] { "ProcedureRequest.identifier", }, XPath = "f:ProcedureRequest/f:identifier", Expression = "ProcedureRequest.identifier" },
new SearchParamDefinition() { Resource = "ProcedureRequest", Name = "orderer", Description = @"Who made request", Type = SearchParamType.Reference, Path = new string[] { "ProcedureRequest.orderer", }, Target = new ResourceType[] { ResourceType.Device, ResourceType.Patient, ResourceType.Practitioner, ResourceType.RelatedPerson, }, XPath = "f:ProcedureRequest/f:orderer", Expression = "ProcedureRequest.orderer" },
new SearchParamDefinition() { Resource = "ProcedureRequest", Name = "patient", Description = @"Search by subject - a patient", Type = SearchParamType.Reference, Path = new string[] { "ProcedureRequest.subject", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:ProcedureRequest/f:subject", Expression = "ProcedureRequest.subject" },
new SearchParamDefinition() { Resource = "ProcedureRequest", Name = "performer", Description = @"Who should perform the procedure", Type = SearchParamType.Reference, Path = new string[] { "ProcedureRequest.performer", }, Target = new ResourceType[] { ResourceType.Organization, ResourceType.Patient, ResourceType.Practitioner, ResourceType.RelatedPerson, }, XPath = "f:ProcedureRequest/f:performer", Expression = "ProcedureRequest.performer" },
new SearchParamDefinition() { Resource = "ProcedureRequest", Name = "subject", Description = @"Search by subject", Type = SearchParamType.Reference, Path = new string[] { "ProcedureRequest.subject", }, Target = new ResourceType[] { ResourceType.Group, ResourceType.Patient, }, XPath = "f:ProcedureRequest/f:subject", Expression = "ProcedureRequest.subject" },
new SearchParamDefinition() { Resource = "ProcessRequest", Name = "action", Description = @"The action requested by this resource", Type = SearchParamType.Token, Path = new string[] { "ProcessRequest.action", }, XPath = "f:ProcessRequest/f:action", Expression = "ProcessRequest.action" },
new SearchParamDefinition() { Resource = "ProcessRequest", Name = "identifier", Description = @"The business identifier of the ProcessRequest", Type = SearchParamType.Token, Path = new string[] { "ProcessRequest.identifier", }, XPath = "f:ProcessRequest/f:identifier", Expression = "ProcessRequest.identifier" },
new SearchParamDefinition() { Resource = "ProcessRequest", Name = "organization", Description = @"The organization who generated this request", Type = SearchParamType.Reference, Path = new string[] { "ProcessRequest.organization", }, Target = new ResourceType[] { ResourceType.Organization, }, XPath = "f:ProcessRequest/f:organization", Expression = "ProcessRequest.organization" },
new SearchParamDefinition() { Resource = "ProcessRequest", Name = "provider", Description = @"The provider who regenerated this request", Type = SearchParamType.Reference, Path = new string[] { "ProcessRequest.provider", }, Target = new ResourceType[] { ResourceType.Practitioner, }, XPath = "f:ProcessRequest/f:provider", Expression = "ProcessRequest.provider" },
new SearchParamDefinition() { Resource = "ProcessResponse", Name = "identifier", Description = @"The business identifier of the Explanation of Benefit", Type = SearchParamType.Token, Path = new string[] { "ProcessResponse.identifier", }, XPath = "f:ProcessResponse/f:identifier", Expression = "ProcessResponse.identifier" },
new SearchParamDefinition() { Resource = "ProcessResponse", Name = "organization", Description = @"The organization who generated this resource", Type = SearchParamType.Reference, Path = new string[] { "ProcessResponse.organization", }, Target = new ResourceType[] { ResourceType.Organization, }, XPath = "f:ProcessResponse/f:organization", Expression = "ProcessResponse.organization" },
new SearchParamDefinition() { Resource = "ProcessResponse", Name = "request", Description = @"The reference to the claim", Type = SearchParamType.Reference, Path = new string[] { "ProcessResponse.request", }, Target = new ResourceType[] { ResourceType.Account, ResourceType.AllergyIntolerance, ResourceType.Appointment, ResourceType.AppointmentResponse, ResourceType.AuditEvent, ResourceType.Basic, ResourceType.Binary, ResourceType.BodySite, ResourceType.Bundle, ResourceType.CarePlan, ResourceType.Claim, ResourceType.ClaimResponse, ResourceType.ClinicalImpression, ResourceType.Communication, ResourceType.CommunicationRequest, ResourceType.Composition, ResourceType.ConceptMap, ResourceType.Condition, ResourceType.Conformance, ResourceType.Contract, ResourceType.Coverage, ResourceType.DataElement, ResourceType.DetectedIssue, ResourceType.Device, ResourceType.DeviceComponent, ResourceType.DeviceMetric, ResourceType.DeviceUseRequest, ResourceType.DeviceUseStatement, ResourceType.DiagnosticOrder, ResourceType.DiagnosticReport, ResourceType.DocumentManifest, ResourceType.DocumentReference, ResourceType.EligibilityRequest, ResourceType.EligibilityResponse, ResourceType.Encounter, ResourceType.EnrollmentRequest, ResourceType.EnrollmentResponse, ResourceType.EpisodeOfCare, ResourceType.ExplanationOfBenefit, ResourceType.FamilyMemberHistory, ResourceType.Flag, ResourceType.Goal, ResourceType.Group, ResourceType.HealthcareService, ResourceType.ImagingObjectSelection, ResourceType.ImagingStudy, ResourceType.Immunization, ResourceType.ImmunizationRecommendation, ResourceType.ImplementationGuide, ResourceType.List, ResourceType.Location, ResourceType.Media, ResourceType.Medication, ResourceType.MedicationAdministration, ResourceType.MedicationDispense, ResourceType.MedicationOrder, ResourceType.MedicationStatement, ResourceType.MessageHeader, ResourceType.NamingSystem, ResourceType.NutritionOrder, ResourceType.Observation, ResourceType.OperationDefinition, ResourceType.OperationOutcome, ResourceType.Order, ResourceType.OrderResponse, ResourceType.Organization, ResourceType.Patient, ResourceType.PaymentNotice, ResourceType.PaymentReconciliation, ResourceType.Person, ResourceType.Practitioner, ResourceType.Procedure, ResourceType.ProcedureRequest, ResourceType.ProcessRequest, ResourceType.ProcessResponse, ResourceType.Provenance, ResourceType.Questionnaire, ResourceType.QuestionnaireResponse, ResourceType.ReferralRequest, ResourceType.RelatedPerson, ResourceType.RiskAssessment, ResourceType.Schedule, ResourceType.SearchParameter, ResourceType.Slot, ResourceType.Specimen, ResourceType.StructureDefinition, ResourceType.Subscription, ResourceType.Substance, ResourceType.SupplyDelivery, ResourceType.SupplyRequest, ResourceType.TestScript, ResourceType.ValueSet, ResourceType.VisionPrescription, }, XPath = "f:ProcessResponse/f:request", Expression = "ProcessResponse.request" },
new SearchParamDefinition() { Resource = "ProcessResponse", Name = "requestorganization", Description = @"The Organization who is responsible the request transaction", Type = SearchParamType.Reference, Path = new string[] { "ProcessResponse.requestOrganization", }, Target = new ResourceType[] { ResourceType.Organization, }, XPath = "f:ProcessResponse/f:requestOrganization", Expression = "ProcessResponse.requestOrganization" },
new SearchParamDefinition() { Resource = "ProcessResponse", Name = "requestprovider", Description = @"The Provider who is responsible the request transaction", Type = SearchParamType.Reference, Path = new string[] { "ProcessResponse.requestProvider", }, Target = new ResourceType[] { ResourceType.Practitioner, }, XPath = "f:ProcessResponse/f:requestProvider", Expression = "ProcessResponse.requestProvider" },
new SearchParamDefinition() { Resource = "Provenance", Name = "agent", Description = @"Individual, device or organization playing role", Type = SearchParamType.Reference, Path = new string[] { "Provenance.agent.actor", }, Target = new ResourceType[] { ResourceType.Device, ResourceType.Organization, ResourceType.Patient, ResourceType.Practitioner, ResourceType.RelatedPerson, }, XPath = "f:Provenance/f:agent/f:actor", Expression = "Provenance.agent.actor" },
new SearchParamDefinition() { Resource = "Provenance", Name = "end", Description = @"End time with inclusive boundary, if not ongoing", Type = SearchParamType.Date, Path = new string[] { "Provenance.period.end", }, XPath = "f:Provenance/f:period/f:end", Expression = "Provenance.period.end" },
new SearchParamDefinition() { Resource = "Provenance", Name = "entity", Description = @"Identity of entity", Type = SearchParamType.Uri, Path = new string[] { "Provenance.entity.reference", }, XPath = "f:Provenance/f:entity/f:reference", Expression = "Provenance.entity.reference" },
new SearchParamDefinition() { Resource = "Provenance", Name = "entitytype", Description = @"The type of resource in this entity", Type = SearchParamType.Token, Path = new string[] { "Provenance.entity.type", }, XPath = "f:Provenance/f:entity/f:type", Expression = "Provenance.entity.type" },
new SearchParamDefinition() { Resource = "Provenance", Name = "location", Description = @"Where the activity occurred, if relevant", Type = SearchParamType.Reference, Path = new string[] { "Provenance.location", }, Target = new ResourceType[] { ResourceType.Location, }, XPath = "f:Provenance/f:location", Expression = "Provenance.location" },
new SearchParamDefinition() { Resource = "Provenance", Name = "patient", Description = @"Target Reference(s) (usually version specific)", Type = SearchParamType.Reference, Path = new string[] { "Provenance.target", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:Provenance/f:target", Expression = "Provenance.target" },
new SearchParamDefinition() { Resource = "Provenance", Name = "sigtype", Description = @"Indication of the reason the entity signed the object(s)", Type = SearchParamType.Token, Path = new string[] { "Provenance.signature.type", }, XPath = "f:Provenance/f:signature/f:type", Expression = "Provenance.signature.type" },
new SearchParamDefinition() { Resource = "Provenance", Name = "start", Description = @"Starting time with inclusive boundary", Type = SearchParamType.Date, Path = new string[] { "Provenance.period.start", }, XPath = "f:Provenance/f:period/f:start", Expression = "Provenance.period.start" },
new SearchParamDefinition() { Resource = "Provenance", Name = "target", Description = @"Target Reference(s) (usually version specific)", Type = SearchParamType.Reference, Path = new string[] { "Provenance.target", }, Target = new ResourceType[] { ResourceType.Account, ResourceType.AllergyIntolerance, ResourceType.Appointment, ResourceType.AppointmentResponse, ResourceType.AuditEvent, ResourceType.Basic, ResourceType.Binary, ResourceType.BodySite, ResourceType.Bundle, ResourceType.CarePlan, ResourceType.Claim, ResourceType.ClaimResponse, ResourceType.ClinicalImpression, ResourceType.Communication, ResourceType.CommunicationRequest, ResourceType.Composition, ResourceType.ConceptMap, ResourceType.Condition, ResourceType.Conformance, ResourceType.Contract, ResourceType.Coverage, ResourceType.DataElement, ResourceType.DetectedIssue, ResourceType.Device, ResourceType.DeviceComponent, ResourceType.DeviceMetric, ResourceType.DeviceUseRequest, ResourceType.DeviceUseStatement, ResourceType.DiagnosticOrder, ResourceType.DiagnosticReport, ResourceType.DocumentManifest, ResourceType.DocumentReference, ResourceType.EligibilityRequest, ResourceType.EligibilityResponse, ResourceType.Encounter, ResourceType.EnrollmentRequest, ResourceType.EnrollmentResponse, ResourceType.EpisodeOfCare, ResourceType.ExplanationOfBenefit, ResourceType.FamilyMemberHistory, ResourceType.Flag, ResourceType.Goal, ResourceType.Group, ResourceType.HealthcareService, ResourceType.ImagingObjectSelection, ResourceType.ImagingStudy, ResourceType.Immunization, ResourceType.ImmunizationRecommendation, ResourceType.ImplementationGuide, ResourceType.List, ResourceType.Location, ResourceType.Media, ResourceType.Medication, ResourceType.MedicationAdministration, ResourceType.MedicationDispense, ResourceType.MedicationOrder, ResourceType.MedicationStatement, ResourceType.MessageHeader, ResourceType.NamingSystem, ResourceType.NutritionOrder, ResourceType.Observation, ResourceType.OperationDefinition, ResourceType.OperationOutcome, ResourceType.Order, ResourceType.OrderResponse, ResourceType.Organization, ResourceType.Patient, ResourceType.PaymentNotice, ResourceType.PaymentReconciliation, ResourceType.Person, ResourceType.Practitioner, ResourceType.Procedure, ResourceType.ProcedureRequest, ResourceType.ProcessRequest, ResourceType.ProcessResponse, ResourceType.Provenance, ResourceType.Questionnaire, ResourceType.QuestionnaireResponse, ResourceType.ReferralRequest, ResourceType.RelatedPerson, ResourceType.RiskAssessment, ResourceType.Schedule, ResourceType.SearchParameter, ResourceType.Slot, ResourceType.Specimen, ResourceType.StructureDefinition, ResourceType.Subscription, ResourceType.Substance, ResourceType.SupplyDelivery, ResourceType.SupplyRequest, ResourceType.TestScript, ResourceType.ValueSet, ResourceType.VisionPrescription, }, XPath = "f:Provenance/f:target", Expression = "Provenance.target" },
new SearchParamDefinition() { Resource = "Provenance", Name = "userid", Description = @"Authorization-system identifier for the agent", Type = SearchParamType.Token, Path = new string[] { "Provenance.agent.userId", }, XPath = "f:Provenance/f:agent/f:userId", Expression = "Provenance.agent.userId" },
new SearchParamDefinition() { Resource = "Questionnaire", Name = "code", Description = @"A code that corresponds to the questionnaire or one of its groups", Type = SearchParamType.Token, Path = new string[] { "Questionnaire.group.concept", }, XPath = "f:Questionnaire/f:group/f:concept", Expression = "Questionnaire.group.concept" },
new SearchParamDefinition() { Resource = "Questionnaire", Name = "date", Description = @"When the questionnaire was last changed", Type = SearchParamType.Date, Path = new string[] { "Questionnaire.date", }, XPath = "f:Questionnaire/f:date", Expression = "Questionnaire.date" },
new SearchParamDefinition() { Resource = "Questionnaire", Name = "identifier", Description = @"An identifier for the questionnaire", Type = SearchParamType.Token, Path = new string[] { "Questionnaire.identifier", }, XPath = "f:Questionnaire/f:identifier", Expression = "Questionnaire.identifier" },
new SearchParamDefinition() { Resource = "Questionnaire", Name = "publisher", Description = @"The author of the questionnaire", Type = SearchParamType.String, Path = new string[] { "Questionnaire.publisher", }, XPath = "f:Questionnaire/f:publisher", Expression = "Questionnaire.publisher" },
new SearchParamDefinition() { Resource = "Questionnaire", Name = "status", Description = @"The status of the questionnaire", Type = SearchParamType.Token, Path = new string[] { "Questionnaire.status", }, XPath = "f:Questionnaire/f:status", Expression = "Questionnaire.status" },
new SearchParamDefinition() { Resource = "Questionnaire", Name = "title", Description = @"All or part of the name of the questionnaire (title for the root group of the questionnaire)", Type = SearchParamType.String, Path = new string[] { "Questionnaire.group.title", }, XPath = "f:Questionnaire/f:group/f:title", Expression = "Questionnaire.group.title" },
new SearchParamDefinition() { Resource = "Questionnaire", Name = "version", Description = @"The business version of the questionnaire", Type = SearchParamType.String, Path = new string[] { "Questionnaire.version", }, XPath = "f:Questionnaire/f:version", Expression = "Questionnaire.version" },
new SearchParamDefinition() { Resource = "QuestionnaireResponse", Name = "author", Description = @"The author of the questionnaire", Type = SearchParamType.Reference, Path = new string[] { "QuestionnaireResponse.author", }, Target = new ResourceType[] { ResourceType.Device, ResourceType.Patient, ResourceType.Practitioner, ResourceType.RelatedPerson, }, XPath = "f:QuestionnaireResponse/f:author", Expression = "QuestionnaireResponse.author" },
new SearchParamDefinition() { Resource = "QuestionnaireResponse", Name = "authored", Description = @"When the questionnaire was authored", Type = SearchParamType.Date, Path = new string[] { "QuestionnaireResponse.authored", }, XPath = "f:QuestionnaireResponse/f:authored", Expression = "QuestionnaireResponse.authored" },
new SearchParamDefinition() { Resource = "QuestionnaireResponse", Name = "encounter", Description = @"Encounter during which questionnaire was authored", Type = SearchParamType.Reference, Path = new string[] { "QuestionnaireResponse.encounter", }, Target = new ResourceType[] { ResourceType.Encounter, }, XPath = "f:QuestionnaireResponse/f:encounter", Expression = "QuestionnaireResponse.encounter" },
new SearchParamDefinition() { Resource = "QuestionnaireResponse", Name = "patient", Description = @"The patient that is the subject of the questionnaire", Type = SearchParamType.Reference, Path = new string[] { "QuestionnaireResponse.subject", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:QuestionnaireResponse/f:subject", Expression = "QuestionnaireResponse.subject" },
new SearchParamDefinition() { Resource = "QuestionnaireResponse", Name = "questionnaire", Description = @"The questionnaire the answers are provided for", Type = SearchParamType.Reference, Path = new string[] { "QuestionnaireResponse.questionnaire", }, Target = new ResourceType[] { ResourceType.Questionnaire, }, XPath = "f:QuestionnaireResponse/f:questionnaire", Expression = "QuestionnaireResponse.questionnaire" },
new SearchParamDefinition() { Resource = "QuestionnaireResponse", Name = "source", Description = @"The person who answered the questions", Type = SearchParamType.Reference, Path = new string[] { "QuestionnaireResponse.source", }, Target = new ResourceType[] { ResourceType.Patient, ResourceType.Practitioner, ResourceType.RelatedPerson, }, XPath = "f:QuestionnaireResponse/f:source", Expression = "QuestionnaireResponse.source" },
new SearchParamDefinition() { Resource = "QuestionnaireResponse", Name = "status", Description = @"The status of the questionnaire response", Type = SearchParamType.Token, Path = new string[] { "QuestionnaireResponse.status", }, XPath = "f:QuestionnaireResponse/f:status", Expression = "QuestionnaireResponse.status" },
new SearchParamDefinition() { Resource = "QuestionnaireResponse", Name = "subject", Description = @"The subject of the questionnaire", Type = SearchParamType.Reference, Path = new string[] { "QuestionnaireResponse.subject", }, Target = new ResourceType[] { ResourceType.Account, ResourceType.AllergyIntolerance, ResourceType.Appointment, ResourceType.AppointmentResponse, ResourceType.AuditEvent, ResourceType.Basic, ResourceType.Binary, ResourceType.BodySite, ResourceType.Bundle, ResourceType.CarePlan, ResourceType.Claim, ResourceType.ClaimResponse, ResourceType.ClinicalImpression, ResourceType.Communication, ResourceType.CommunicationRequest, ResourceType.Composition, ResourceType.ConceptMap, ResourceType.Condition, ResourceType.Conformance, ResourceType.Contract, ResourceType.Coverage, ResourceType.DataElement, ResourceType.DetectedIssue, ResourceType.Device, ResourceType.DeviceComponent, ResourceType.DeviceMetric, ResourceType.DeviceUseRequest, ResourceType.DeviceUseStatement, ResourceType.DiagnosticOrder, ResourceType.DiagnosticReport, ResourceType.DocumentManifest, ResourceType.DocumentReference, ResourceType.EligibilityRequest, ResourceType.EligibilityResponse, ResourceType.Encounter, ResourceType.EnrollmentRequest, ResourceType.EnrollmentResponse, ResourceType.EpisodeOfCare, ResourceType.ExplanationOfBenefit, ResourceType.FamilyMemberHistory, ResourceType.Flag, ResourceType.Goal, ResourceType.Group, ResourceType.HealthcareService, ResourceType.ImagingObjectSelection, ResourceType.ImagingStudy, ResourceType.Immunization, ResourceType.ImmunizationRecommendation, ResourceType.ImplementationGuide, ResourceType.List, ResourceType.Location, ResourceType.Media, ResourceType.Medication, ResourceType.MedicationAdministration, ResourceType.MedicationDispense, ResourceType.MedicationOrder, ResourceType.MedicationStatement, ResourceType.MessageHeader, ResourceType.NamingSystem, ResourceType.NutritionOrder, ResourceType.Observation, ResourceType.OperationDefinition, ResourceType.OperationOutcome, ResourceType.Order, ResourceType.OrderResponse, ResourceType.Organization, ResourceType.Patient, ResourceType.PaymentNotice, ResourceType.PaymentReconciliation, ResourceType.Person, ResourceType.Practitioner, ResourceType.Procedure, ResourceType.ProcedureRequest, ResourceType.ProcessRequest, ResourceType.ProcessResponse, ResourceType.Provenance, ResourceType.Questionnaire, ResourceType.QuestionnaireResponse, ResourceType.ReferralRequest, ResourceType.RelatedPerson, ResourceType.RiskAssessment, ResourceType.Schedule, ResourceType.SearchParameter, ResourceType.Slot, ResourceType.Specimen, ResourceType.StructureDefinition, ResourceType.Subscription, ResourceType.Substance, ResourceType.SupplyDelivery, ResourceType.SupplyRequest, ResourceType.TestScript, ResourceType.ValueSet, ResourceType.VisionPrescription, }, XPath = "f:QuestionnaireResponse/f:subject", Expression = "QuestionnaireResponse.subject" },
new SearchParamDefinition() { Resource = "ReferralRequest", Name = "date", Description = @"Creation or activation date", Type = SearchParamType.Date, Path = new string[] { "ReferralRequest.date", }, XPath = "f:ReferralRequest/f:date", Expression = "ReferralRequest.date" },
new SearchParamDefinition() { Resource = "ReferralRequest", Name = "patient", Description = @"Who the referral is about", Type = SearchParamType.Reference, Path = new string[] { "ReferralRequest.patient", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:ReferralRequest/f:patient", Expression = "ReferralRequest.patient" },
new SearchParamDefinition() { Resource = "ReferralRequest", Name = "priority", Description = @"The priority assigned to the referral", Type = SearchParamType.Token, Path = new string[] { "ReferralRequest.priority", }, XPath = "f:ReferralRequest/f:priority", Expression = "ReferralRequest.priority" },
new SearchParamDefinition() { Resource = "ReferralRequest", Name = "recipient", Description = @"The person that the referral was sent to", Type = SearchParamType.Reference, Path = new string[] { "ReferralRequest.recipient", }, Target = new ResourceType[] { ResourceType.Organization, ResourceType.Practitioner, }, XPath = "f:ReferralRequest/f:recipient", Expression = "ReferralRequest.recipient" },
new SearchParamDefinition() { Resource = "ReferralRequest", Name = "requester", Description = @"Requester of referral / transfer of care", Type = SearchParamType.Reference, Path = new string[] { "ReferralRequest.requester", }, Target = new ResourceType[] { ResourceType.Organization, ResourceType.Patient, ResourceType.Practitioner, }, XPath = "f:ReferralRequest/f:requester", Expression = "ReferralRequest.requester" },
new SearchParamDefinition() { Resource = "ReferralRequest", Name = "specialty", Description = @"The specialty that the referral is for", Type = SearchParamType.Token, Path = new string[] { "ReferralRequest.specialty", }, XPath = "f:ReferralRequest/f:specialty", Expression = "ReferralRequest.specialty" },
new SearchParamDefinition() { Resource = "ReferralRequest", Name = "status", Description = @"The status of the referral", Type = SearchParamType.Token, Path = new string[] { "ReferralRequest.status", }, XPath = "f:ReferralRequest/f:status", Expression = "ReferralRequest.status" },
new SearchParamDefinition() { Resource = "ReferralRequest", Name = "type", Description = @"The type of the referral", Type = SearchParamType.Token, Path = new string[] { "ReferralRequest.type", }, XPath = "f:ReferralRequest/f:type", Expression = "ReferralRequest.type" },
new SearchParamDefinition() { Resource = "RelatedPerson", Name = "address", Description = @"An address in any kind of address/part", Type = SearchParamType.String, Path = new string[] { "RelatedPerson.address", }, XPath = "f:RelatedPerson/f:address", Expression = "RelatedPerson.address" },
new SearchParamDefinition() { Resource = "RelatedPerson", Name = "address-city", Description = @"A city specified in an address", Type = SearchParamType.String, Path = new string[] { "RelatedPerson.address.city", }, XPath = "f:RelatedPerson/f:address/f:city", Expression = "RelatedPerson.address.city" },
new SearchParamDefinition() { Resource = "RelatedPerson", Name = "address-country", Description = @"A country specified in an address", Type = SearchParamType.String, Path = new string[] { "RelatedPerson.address.country", }, XPath = "f:RelatedPerson/f:address/f:country", Expression = "RelatedPerson.address.country" },
new SearchParamDefinition() { Resource = "RelatedPerson", Name = "address-postalcode", Description = @"A postal code specified in an address", Type = SearchParamType.String, Path = new string[] { "RelatedPerson.address.postalCode", }, XPath = "f:RelatedPerson/f:address/f:postalCode", Expression = "RelatedPerson.address.postalCode" },
new SearchParamDefinition() { Resource = "RelatedPerson", Name = "address-state", Description = @"A state specified in an address", Type = SearchParamType.String, Path = new string[] { "RelatedPerson.address.state", }, XPath = "f:RelatedPerson/f:address/f:state", Expression = "RelatedPerson.address.state" },
new SearchParamDefinition() { Resource = "RelatedPerson", Name = "address-use", Description = @"A use code specified in an address", Type = SearchParamType.Token, Path = new string[] { "RelatedPerson.address.use", }, XPath = "f:RelatedPerson/f:address/f:use", Expression = "RelatedPerson.address.use" },
new SearchParamDefinition() { Resource = "RelatedPerson", Name = "birthdate", Description = @"The Related Person's date of birth", Type = SearchParamType.Date, Path = new string[] { "RelatedPerson.birthDate", }, XPath = "f:RelatedPerson/f:birthDate", Expression = "RelatedPerson.birthDate" },
new SearchParamDefinition() { Resource = "RelatedPerson", Name = "email", Description = @"A value in an email contact", Type = SearchParamType.Token, Path = new string[] { "RelatedPerson.telecom[system.@value='email']", }, XPath = "f:RelatedPerson/f:telecom[system/@value='email']", Expression = "RelatedPerson.telecom.where(system='email')" },
new SearchParamDefinition() { Resource = "RelatedPerson", Name = "gender", Description = @"Gender of the person", Type = SearchParamType.Token, Path = new string[] { "RelatedPerson.gender", }, XPath = "f:RelatedPerson/f:gender", Expression = "RelatedPerson.gender" },
new SearchParamDefinition() { Resource = "RelatedPerson", Name = "identifier", Description = @"A patient Identifier", Type = SearchParamType.Token, Path = new string[] { "RelatedPerson.identifier", }, XPath = "f:RelatedPerson/f:identifier", Expression = "RelatedPerson.identifier" },
new SearchParamDefinition() { Resource = "RelatedPerson", Name = "name", Description = @"A portion of name in any name part", Type = SearchParamType.String, Path = new string[] { "RelatedPerson.name", }, XPath = "f:RelatedPerson/f:name", Expression = "RelatedPerson.name" },
new SearchParamDefinition() { Resource = "RelatedPerson", Name = "patient", Description = @"The patient this person is related to", Type = SearchParamType.Reference, Path = new string[] { "RelatedPerson.patient", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:RelatedPerson/f:patient", Expression = "RelatedPerson.patient" },
new SearchParamDefinition() { Resource = "RelatedPerson", Name = "phone", Description = @"A value in a phone contact", Type = SearchParamType.Token, Path = new string[] { "RelatedPerson.telecom[system.@value='phone']", }, XPath = "f:RelatedPerson/f:telecom[system/@value='phone']", Expression = "RelatedPerson.telecom.where(system='phone')" },
new SearchParamDefinition() { Resource = "RelatedPerson", Name = "phonetic", Description = @"A portion of name using some kind of phonetic matching algorithm", Type = SearchParamType.String, Path = new string[] { "RelatedPerson.name", }, XPath = "f:RelatedPerson/f:name", Expression = "RelatedPerson.name" },
new SearchParamDefinition() { Resource = "RelatedPerson", Name = "telecom", Description = @"The value in any kind of contact", Type = SearchParamType.Token, Path = new string[] { "RelatedPerson.telecom", }, XPath = "f:RelatedPerson/f:telecom", Expression = "RelatedPerson.telecom" },
new SearchParamDefinition() { Resource = "RiskAssessment", Name = "condition", Description = @"Condition assessed", Type = SearchParamType.Reference, Path = new string[] { "RiskAssessment.condition", }, Target = new ResourceType[] { ResourceType.Condition, }, XPath = "f:RiskAssessment/f:condition", Expression = "RiskAssessment.condition" },
new SearchParamDefinition() { Resource = "RiskAssessment", Name = "date", Description = @"When was assessment made?", Type = SearchParamType.Date, Path = new string[] { "RiskAssessment.date", }, XPath = "f:RiskAssessment/f:date", Expression = "RiskAssessment.date" },
new SearchParamDefinition() { Resource = "RiskAssessment", Name = "encounter", Description = @"Where was assessment performed?", Type = SearchParamType.Reference, Path = new string[] { "RiskAssessment.encounter", }, Target = new ResourceType[] { ResourceType.Encounter, }, XPath = "f:RiskAssessment/f:encounter", Expression = "RiskAssessment.encounter" },
new SearchParamDefinition() { Resource = "RiskAssessment", Name = "identifier", Description = @"Unique identifier for the assessment", Type = SearchParamType.Token, Path = new string[] { "RiskAssessment.identifier", }, XPath = "f:RiskAssessment/f:identifier", Expression = "RiskAssessment.identifier" },
new SearchParamDefinition() { Resource = "RiskAssessment", Name = "method", Description = @"Evaluation mechanism", Type = SearchParamType.Token, Path = new string[] { "RiskAssessment.method", }, XPath = "f:RiskAssessment/f:method", Expression = "RiskAssessment.method" },
new SearchParamDefinition() { Resource = "RiskAssessment", Name = "patient", Description = @"Who/what does assessment apply to?", Type = SearchParamType.Reference, Path = new string[] { "RiskAssessment.subject", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:RiskAssessment/f:subject", Expression = "RiskAssessment.subject" },
new SearchParamDefinition() { Resource = "RiskAssessment", Name = "performer", Description = @"Who did assessment?", Type = SearchParamType.Reference, Path = new string[] { "RiskAssessment.performer", }, Target = new ResourceType[] { ResourceType.Device, ResourceType.Practitioner, }, XPath = "f:RiskAssessment/f:performer", Expression = "RiskAssessment.performer" },
new SearchParamDefinition() { Resource = "RiskAssessment", Name = "subject", Description = @"Who/what does assessment apply to?", Type = SearchParamType.Reference, Path = new string[] { "RiskAssessment.subject", }, Target = new ResourceType[] { ResourceType.Group, ResourceType.Patient, }, XPath = "f:RiskAssessment/f:subject", Expression = "RiskAssessment.subject" },
new SearchParamDefinition() { Resource = "Schedule", Name = "actor", Description = @"The individual(HealthcareService, Practitioner, Location, ...) to find a Schedule for", Type = SearchParamType.Reference, Path = new string[] { "Schedule.actor", }, Target = new ResourceType[] { ResourceType.Device, ResourceType.HealthcareService, ResourceType.Location, ResourceType.Patient, ResourceType.Practitioner, ResourceType.RelatedPerson, }, XPath = "f:Schedule/f:actor", Expression = "Schedule.actor" },
new SearchParamDefinition() { Resource = "Schedule", Name = "date", Description = @"Search for Schedule resources that have a period that contains this date specified", Type = SearchParamType.Date, Path = new string[] { "Schedule.planningHorizon", }, XPath = "f:Schedule/f:planningHorizon", Expression = "Schedule.planningHorizon" },
new SearchParamDefinition() { Resource = "Schedule", Name = "identifier", Description = @"A Schedule Identifier", Type = SearchParamType.Token, Path = new string[] { "Schedule.identifier", }, XPath = "f:Schedule/f:identifier", Expression = "Schedule.identifier" },
new SearchParamDefinition() { Resource = "Schedule", Name = "type", Description = @"The type of appointments that can be booked into associated slot(s)", Type = SearchParamType.Token, Path = new string[] { "Schedule.type", }, XPath = "f:Schedule/f:type", Expression = "Schedule.type" },
new SearchParamDefinition() { Resource = "SearchParameter", Name = "base", Description = @"The resource type this search parameter applies to", Type = SearchParamType.Token, Path = new string[] { "SearchParameter.base", }, XPath = "f:SearchParameter/f:base", Expression = "SearchParameter.base" },
new SearchParamDefinition() { Resource = "SearchParameter", Name = "code", Description = @"Code used in URL", Type = SearchParamType.Token, Path = new string[] { "SearchParameter.code", }, XPath = "f:SearchParameter/f:code", Expression = "SearchParameter.code" },
new SearchParamDefinition() { Resource = "SearchParameter", Name = "description", Description = @"Documentation for search parameter", Type = SearchParamType.String, Path = new string[] { "SearchParameter.description", }, XPath = "f:SearchParameter/f:description", Expression = "SearchParameter.description" },
new SearchParamDefinition() { Resource = "SearchParameter", Name = "name", Description = @"Informal name for this search parameter", Type = SearchParamType.String, Path = new string[] { "SearchParameter.name", }, XPath = "f:SearchParameter/f:name", Expression = "SearchParameter.name" },
new SearchParamDefinition() { Resource = "SearchParameter", Name = "target", Description = @"Types of resource (if a resource reference)", Type = SearchParamType.Token, Path = new string[] { "SearchParameter.target", }, XPath = "f:SearchParameter/f:target", Expression = "SearchParameter.target" },
new SearchParamDefinition() { Resource = "SearchParameter", Name = "type", Description = @"number | date | string | token | reference | composite | quantity | uri", Type = SearchParamType.Token, Path = new string[] { "SearchParameter.type", }, XPath = "f:SearchParameter/f:type", Expression = "SearchParameter.type" },
new SearchParamDefinition() { Resource = "SearchParameter", Name = "url", Description = @"Absolute URL used to reference this search parameter", Type = SearchParamType.Uri, Path = new string[] { "SearchParameter.url", }, XPath = "f:SearchParameter/f:url", Expression = "SearchParameter.url" },
new SearchParamDefinition() { Resource = "Slot", Name = "fb-type", Description = @"The free/busy status of the appointment", Type = SearchParamType.Token, Path = new string[] { "Slot.freeBusyType", }, XPath = "f:Slot/f:freeBusyType", Expression = "Slot.freeBusyType" },
new SearchParamDefinition() { Resource = "Slot", Name = "identifier", Description = @"A Slot Identifier", Type = SearchParamType.Token, Path = new string[] { "Slot.identifier", }, XPath = "f:Slot/f:identifier", Expression = "Slot.identifier" },
new SearchParamDefinition() { Resource = "Slot", Name = "schedule", Description = @"The Schedule Resource that we are seeking a slot within", Type = SearchParamType.Reference, Path = new string[] { "Slot.schedule", }, Target = new ResourceType[] { ResourceType.Schedule, }, XPath = "f:Slot/f:schedule", Expression = "Slot.schedule" },
new SearchParamDefinition() { Resource = "Slot", Name = "slot-type", Description = @"The type of appointments that can be booked into the slot", Type = SearchParamType.Token, Path = new string[] { "Slot.type", }, XPath = "f:Slot/f:type", Expression = "Slot.type" },
new SearchParamDefinition() { Resource = "Slot", Name = "start", Description = @"Appointment date/time.", Type = SearchParamType.Date, Path = new string[] { "Slot.start", }, XPath = "f:Slot/f:start", Expression = "Slot.start" },
new SearchParamDefinition() { Resource = "Specimen", Name = "accession", Description = @"The accession number associated with the specimen", Type = SearchParamType.Token, Path = new string[] { "Specimen.accessionIdentifier", }, XPath = "f:Specimen/f:accessionIdentifier", Expression = "Specimen.accessionIdentifier" },
new SearchParamDefinition() { Resource = "Specimen", Name = "bodysite", Description = @"The code for the body site from where the specimen originated", Type = SearchParamType.Token, Path = new string[] { "Specimen.collection.bodySite", }, XPath = "f:Specimen/f:collection/f:bodySite", Expression = "Specimen.collection.bodySite" },
new SearchParamDefinition() { Resource = "Specimen", Name = "collected", Description = @"The date the specimen was collected", Type = SearchParamType.Date, Path = new string[] { "Specimen.collection.collectedDateTime", "Specimen.collection.collectedPeriod", }, XPath = "f:Specimen/f:collection/f:collectedDateTime | f:Specimen/f:collection/f:collectedPeriod", Expression = "Specimen.collection.collected[x]" },
new SearchParamDefinition() { Resource = "Specimen", Name = "collector", Description = @"Who collected the specimen", Type = SearchParamType.Reference, Path = new string[] { "Specimen.collection.collector", }, Target = new ResourceType[] { ResourceType.Practitioner, }, XPath = "f:Specimen/f:collection/f:collector", Expression = "Specimen.collection.collector" },
new SearchParamDefinition() { Resource = "Specimen", Name = "container", Description = @"The kind of specimen container", Type = SearchParamType.Token, Path = new string[] { "Specimen.container.type", }, XPath = "f:Specimen/f:container/f:type", Expression = "Specimen.container.type" },
new SearchParamDefinition() { Resource = "Specimen", Name = "container-id", Description = @"The unique identifier associated with the specimen container", Type = SearchParamType.Token, Path = new string[] { "Specimen.container.identifier", }, XPath = "f:Specimen/f:container/f:identifier", Expression = "Specimen.container.identifier" },
new SearchParamDefinition() { Resource = "Specimen", Name = "identifier", Description = @"The unique identifier associated with the specimen", Type = SearchParamType.Token, Path = new string[] { "Specimen.identifier", }, XPath = "f:Specimen/f:identifier", Expression = "Specimen.identifier" },
new SearchParamDefinition() { Resource = "Specimen", Name = "parent", Description = @"The parent of the specimen", Type = SearchParamType.Reference, Path = new string[] { "Specimen.parent", }, Target = new ResourceType[] { ResourceType.Specimen, }, XPath = "f:Specimen/f:parent", Expression = "Specimen.parent" },
new SearchParamDefinition() { Resource = "Specimen", Name = "patient", Description = @"The patient the specimen comes from", Type = SearchParamType.Reference, Path = new string[] { "Specimen.subject", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:Specimen/f:subject", Expression = "Specimen.subject" },
new SearchParamDefinition() { Resource = "Specimen", Name = "subject", Description = @"The subject of the specimen", Type = SearchParamType.Reference, Path = new string[] { "Specimen.subject", }, Target = new ResourceType[] { ResourceType.Device, ResourceType.Group, ResourceType.Patient, ResourceType.Substance, }, XPath = "f:Specimen/f:subject", Expression = "Specimen.subject" },
new SearchParamDefinition() { Resource = "Specimen", Name = "type", Description = @"The specimen type", Type = SearchParamType.Token, Path = new string[] { "Specimen.type", }, XPath = "f:Specimen/f:type", Expression = "Specimen.type" },
new SearchParamDefinition() { Resource = "StructureDefinition", Name = "abstract", Description = @"Whether the structure is abstract", Type = SearchParamType.Token, Path = new string[] { "StructureDefinition.abstract", }, XPath = "f:StructureDefinition/f:abstract", Expression = "StructureDefinition.abstract" },
new SearchParamDefinition() { Resource = "StructureDefinition", Name = "base", Description = @"Structure that this set of constraints applies to", Type = SearchParamType.Uri, Path = new string[] { "StructureDefinition.base", }, XPath = "f:StructureDefinition/f:base", Expression = "StructureDefinition.base" },
new SearchParamDefinition() { Resource = "StructureDefinition", Name = "base-path", Description = @"Path that identifies the base element", Type = SearchParamType.Token, Path = new string[] { "StructureDefinition.snapshot.element.base.path", "StructureDefinition.differential.element.base.path", }, XPath = "f:StructureDefinition/f:snapshot/f:element/f:base/f:path | f:StructureDefinition/f:differential/f:element/f:base/f:path", Expression = "StructureDefinition.snapshot.element.base.path | StructureDefinition.differential.element.base.path" },
new SearchParamDefinition() { Resource = "StructureDefinition", Name = "code", Description = @"A code for the profile", Type = SearchParamType.Token, Path = new string[] { "StructureDefinition.code", }, XPath = "f:StructureDefinition/f:code", Expression = "StructureDefinition.code" },
new SearchParamDefinition() { Resource = "StructureDefinition", Name = "context", Description = @"A use context assigned to the structure", Type = SearchParamType.Token, Path = new string[] { "StructureDefinition.useContext", }, XPath = "f:StructureDefinition/f:useContext", Expression = "StructureDefinition.useContext" },
new SearchParamDefinition() { Resource = "StructureDefinition", Name = "context-type", Description = @"resource | datatype | mapping | extension", Type = SearchParamType.Token, Path = new string[] { "StructureDefinition.contextType", }, XPath = "f:StructureDefinition/f:contextType", Expression = "StructureDefinition.contextType" },
new SearchParamDefinition() { Resource = "StructureDefinition", Name = "date", Description = @"The profile publication date", Type = SearchParamType.Date, Path = new string[] { "StructureDefinition.date", }, XPath = "f:StructureDefinition/f:date", Expression = "StructureDefinition.date" },
new SearchParamDefinition() { Resource = "StructureDefinition", Name = "description", Description = @"Text search in the description of the profile", Type = SearchParamType.String, Path = new string[] { "StructureDefinition.description", }, XPath = "f:StructureDefinition/f:description", Expression = "StructureDefinition.description" },
new SearchParamDefinition() { Resource = "StructureDefinition", Name = "display", Description = @"Use this name when displaying the value", Type = SearchParamType.String, Path = new string[] { "StructureDefinition.display", }, XPath = "f:StructureDefinition/f:display", Expression = "StructureDefinition.display" },
new SearchParamDefinition() { Resource = "StructureDefinition", Name = "experimental", Description = @"If for testing purposes, not real usage", Type = SearchParamType.Token, Path = new string[] { "StructureDefinition.experimental", }, XPath = "f:StructureDefinition/f:experimental", Expression = "StructureDefinition.experimental" },
new SearchParamDefinition() { Resource = "StructureDefinition", Name = "ext-context", Description = @"Where the extension can be used in instances", Type = SearchParamType.String, Path = new string[] { "StructureDefinition.context", }, XPath = "f:StructureDefinition/f:context", Expression = "StructureDefinition.context" },
new SearchParamDefinition() { Resource = "StructureDefinition", Name = "identifier", Description = @"The identifier of the profile", Type = SearchParamType.Token, Path = new string[] { "StructureDefinition.identifier", }, XPath = "f:StructureDefinition/f:identifier", Expression = "StructureDefinition.identifier" },
new SearchParamDefinition() { Resource = "StructureDefinition", Name = "kind", Description = @"datatype | resource | logical", Type = SearchParamType.Token, Path = new string[] { "StructureDefinition.kind", }, XPath = "f:StructureDefinition/f:kind", Expression = "StructureDefinition.kind" },
new SearchParamDefinition() { Resource = "StructureDefinition", Name = "name", Description = @"Name of the profile", Type = SearchParamType.String, Path = new string[] { "StructureDefinition.name", }, XPath = "f:StructureDefinition/f:name", Expression = "StructureDefinition.name" },
new SearchParamDefinition() { Resource = "StructureDefinition", Name = "path", Description = @"A path that is constrained in the profile", Type = SearchParamType.Token, Path = new string[] { "StructureDefinition.snapshot.element.path", "StructureDefinition.differential.element.path", }, XPath = "f:StructureDefinition/f:snapshot/f:element/f:path | f:StructureDefinition/f:differential/f:element/f:path", Expression = "StructureDefinition.snapshot.element.path | StructureDefinition.differential.element.path" },
new SearchParamDefinition() { Resource = "StructureDefinition", Name = "publisher", Description = @"Name of the publisher of the profile", Type = SearchParamType.String, Path = new string[] { "StructureDefinition.publisher", }, XPath = "f:StructureDefinition/f:publisher", Expression = "StructureDefinition.publisher" },
new SearchParamDefinition() { Resource = "StructureDefinition", Name = "status", Description = @"The current status of the profile", Type = SearchParamType.Token, Path = new string[] { "StructureDefinition.status", }, XPath = "f:StructureDefinition/f:status", Expression = "StructureDefinition.status" },
new SearchParamDefinition() { Resource = "StructureDefinition", Name = "type", Description = @"Any datatype or resource, including abstract ones", Type = SearchParamType.Token, Path = new string[] { "StructureDefinition.constrainedType", }, XPath = "f:StructureDefinition/f:constrainedType", Expression = "StructureDefinition.constrainedType" },
new SearchParamDefinition() { Resource = "StructureDefinition", Name = "url", Description = @"Absolute URL used to reference this StructureDefinition", Type = SearchParamType.Uri, Path = new string[] { "StructureDefinition.url", }, XPath = "f:StructureDefinition/f:url", Expression = "StructureDefinition.url" },
new SearchParamDefinition() { Resource = "StructureDefinition", Name = "valueset", Description = @"A vocabulary binding reference", Type = SearchParamType.Reference, Path = new string[] { "StructureDefinition.snapshot.element.binding.valueSetUri", "StructureDefinition.snapshot.element.binding.valueSetReference", }, Target = new ResourceType[] { ResourceType.ValueSet, }, XPath = "f:StructureDefinition/f:snapshot/f:element/f:binding/f:valueSetUri | f:StructureDefinition/f:snapshot/f:element/f:binding/f:valueSetReference", Expression = "StructureDefinition.snapshot.element.binding.valueSet[x]" },
new SearchParamDefinition() { Resource = "StructureDefinition", Name = "version", Description = @"The version identifier of the profile", Type = SearchParamType.Token, Path = new string[] { "StructureDefinition.version", }, XPath = "f:StructureDefinition/f:version", Expression = "StructureDefinition.version" },
new SearchParamDefinition() { Resource = "Subscription", Name = "contact", Description = @"Contact details for source (e.g. troubleshooting)", Type = SearchParamType.Token, Path = new string[] { "Subscription.contact", }, XPath = "f:Subscription/f:contact", Expression = "Subscription.contact" },
new SearchParamDefinition() { Resource = "Subscription", Name = "criteria", Description = @"Rule for server push criteria", Type = SearchParamType.String, Path = new string[] { "Subscription.criteria", }, XPath = "f:Subscription/f:criteria", Expression = "Subscription.criteria" },
new SearchParamDefinition() { Resource = "Subscription", Name = "payload", Description = @"Mimetype to send, or blank for no payload", Type = SearchParamType.String, Path = new string[] { "Subscription.channel.payload", }, XPath = "f:Subscription/f:channel/f:payload", Expression = "Subscription.channel.payload" },
new SearchParamDefinition() { Resource = "Subscription", Name = "status", Description = @"requested | active | error | off", Type = SearchParamType.Token, Path = new string[] { "Subscription.status", }, XPath = "f:Subscription/f:status", Expression = "Subscription.status" },
new SearchParamDefinition() { Resource = "Subscription", Name = "tag", Description = @"A tag to add to matching resources", Type = SearchParamType.Token, Path = new string[] { "Subscription.tag", }, XPath = "f:Subscription/f:tag", Expression = "Subscription.tag" },
new SearchParamDefinition() { Resource = "Subscription", Name = "type", Description = @"rest-hook | websocket | email | sms | message", Type = SearchParamType.Token, Path = new string[] { "Subscription.channel.type", }, XPath = "f:Subscription/f:channel/f:type", Expression = "Subscription.channel.type" },
new SearchParamDefinition() { Resource = "Subscription", Name = "url", Description = @"Where the channel points to", Type = SearchParamType.Uri, Path = new string[] { "Subscription.channel.endpoint", }, XPath = "f:Subscription/f:channel/f:endpoint", Expression = "Subscription.channel.endpoint" },
new SearchParamDefinition() { Resource = "Substance", Name = "category", Description = @"The category of the substance", Type = SearchParamType.Token, Path = new string[] { "Substance.category", }, XPath = "f:Substance/f:category", Expression = "Substance.category" },
new SearchParamDefinition() { Resource = "Substance", Name = "code", Description = @"The code of the substance", Type = SearchParamType.Token, Path = new string[] { "Substance.code", }, XPath = "f:Substance/f:code", Expression = "Substance.code" },
new SearchParamDefinition() { Resource = "Substance", Name = "container-identifier", Description = @"Identifier of the package/container", Type = SearchParamType.Token, Path = new string[] { "Substance.instance.identifier", }, XPath = "f:Substance/f:instance/f:identifier", Expression = "Substance.instance.identifier" },
new SearchParamDefinition() { Resource = "Substance", Name = "expiry", Description = @"Expiry date of package or container of substance", Type = SearchParamType.Date, Path = new string[] { "Substance.instance.expiry", }, XPath = "f:Substance/f:instance/f:expiry", Expression = "Substance.instance.expiry" },
new SearchParamDefinition() { Resource = "Substance", Name = "identifier", Description = @"Unique identifier for the substance", Type = SearchParamType.Token, Path = new string[] { "Substance.identifier", }, XPath = "f:Substance/f:identifier", Expression = "Substance.identifier" },
new SearchParamDefinition() { Resource = "Substance", Name = "quantity", Description = @"Amount of substance in the package", Type = SearchParamType.Quantity, Path = new string[] { "Substance.instance.quantity", }, XPath = "f:Substance/f:instance/f:quantity", Expression = "Substance.instance.quantity" },
new SearchParamDefinition() { Resource = "Substance", Name = "substance", Description = @"A component of the substance", Type = SearchParamType.Reference, Path = new string[] { "Substance.ingredient.substance", }, Target = new ResourceType[] { ResourceType.Substance, }, XPath = "f:Substance/f:ingredient/f:substance", Expression = "Substance.ingredient.substance" },
new SearchParamDefinition() { Resource = "SupplyDelivery", Name = "identifier", Description = @"External identifier", Type = SearchParamType.Token, Path = new string[] { "SupplyDelivery.identifier", }, XPath = "f:SupplyDelivery/f:identifier", Expression = "SupplyDelivery.identifier" },
new SearchParamDefinition() { Resource = "SupplyDelivery", Name = "patient", Description = @"Patient for whom the item is supplied", Type = SearchParamType.Reference, Path = new string[] { "SupplyDelivery.patient", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:SupplyDelivery/f:patient", Expression = "SupplyDelivery.patient" },
new SearchParamDefinition() { Resource = "SupplyDelivery", Name = "receiver", Description = @"Who collected the Supply", Type = SearchParamType.Reference, Path = new string[] { "SupplyDelivery.receiver", }, Target = new ResourceType[] { ResourceType.Practitioner, }, XPath = "f:SupplyDelivery/f:receiver", Expression = "SupplyDelivery.receiver" },
new SearchParamDefinition() { Resource = "SupplyDelivery", Name = "status", Description = @"in-progress | completed | abandoned", Type = SearchParamType.Token, Path = new string[] { "SupplyDelivery.status", }, XPath = "f:SupplyDelivery/f:status", Expression = "SupplyDelivery.status" },
new SearchParamDefinition() { Resource = "SupplyDelivery", Name = "supplier", Description = @"Dispenser", Type = SearchParamType.Reference, Path = new string[] { "SupplyDelivery.supplier", }, Target = new ResourceType[] { ResourceType.Practitioner, }, XPath = "f:SupplyDelivery/f:supplier", Expression = "SupplyDelivery.supplier" },
new SearchParamDefinition() { Resource = "SupplyRequest", Name = "date", Description = @"When the request was made", Type = SearchParamType.Date, Path = new string[] { "SupplyRequest.date", }, XPath = "f:SupplyRequest/f:date", Expression = "SupplyRequest.date" },
new SearchParamDefinition() { Resource = "SupplyRequest", Name = "identifier", Description = @"Unique identifier", Type = SearchParamType.Token, Path = new string[] { "SupplyRequest.identifier", }, XPath = "f:SupplyRequest/f:identifier", Expression = "SupplyRequest.identifier" },
new SearchParamDefinition() { Resource = "SupplyRequest", Name = "kind", Description = @"The kind of supply (central, non-stock, etc.)", Type = SearchParamType.Token, Path = new string[] { "SupplyRequest.kind", }, XPath = "f:SupplyRequest/f:kind", Expression = "SupplyRequest.kind" },
new SearchParamDefinition() { Resource = "SupplyRequest", Name = "patient", Description = @"Patient for whom the item is supplied", Type = SearchParamType.Reference, Path = new string[] { "SupplyRequest.patient", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:SupplyRequest/f:patient", Expression = "SupplyRequest.patient" },
new SearchParamDefinition() { Resource = "SupplyRequest", Name = "source", Description = @"Who initiated this order", Type = SearchParamType.Reference, Path = new string[] { "SupplyRequest.source", }, Target = new ResourceType[] { ResourceType.Organization, ResourceType.Patient, ResourceType.Practitioner, }, XPath = "f:SupplyRequest/f:source", Expression = "SupplyRequest.source" },
new SearchParamDefinition() { Resource = "SupplyRequest", Name = "status", Description = @"requested | completed | failed | cancelled", Type = SearchParamType.Token, Path = new string[] { "SupplyRequest.status", }, XPath = "f:SupplyRequest/f:status", Expression = "SupplyRequest.status" },
new SearchParamDefinition() { Resource = "SupplyRequest", Name = "supplier", Description = @"Who is intended to fulfill the request", Type = SearchParamType.Reference, Path = new string[] { "SupplyRequest.supplier", }, Target = new ResourceType[] { ResourceType.Organization, }, XPath = "f:SupplyRequest/f:supplier", Expression = "SupplyRequest.supplier" },
new SearchParamDefinition() { Resource = "TestScript", Name = "description", Description = @"Natural language description of the TestScript", Type = SearchParamType.String, Path = new string[] { "TestScript.description", }, XPath = "f:TestScript/f:description", Expression = "TestScript.description" },
new SearchParamDefinition() { Resource = "TestScript", Name = "identifier", Description = @"External identifier", Type = SearchParamType.Token, Path = new string[] { "TestScript.identifier", }, XPath = "f:TestScript/f:identifier", Expression = "TestScript.identifier" },
new SearchParamDefinition() { Resource = "TestScript", Name = "name", Description = @"Informal name for this TestScript", Type = SearchParamType.String, Path = new string[] { "TestScript.name", }, XPath = "f:TestScript/f:name", Expression = "TestScript.name" },
new SearchParamDefinition() { Resource = "TestScript", Name = "testscript-capability", Description = @"TestScript required and validated capability", Type = SearchParamType.String, Path = new string[] { "TestScript.metadata.capability.description", }, XPath = "f:TestScript/f:metadata/f:capability/f:description", Expression = "TestScript.metadata.capability.description" },
new SearchParamDefinition() { Resource = "TestScript", Name = "testscript-setup-capability", Description = @"TestScript setup required and validated capability", Type = SearchParamType.String, Path = new string[] { "TestScript.setup.metadata.capability.description", }, XPath = "f:TestScript/f:setup/f:metadata/f:capability/f:description", Expression = "TestScript.setup.metadata.capability.description" },
new SearchParamDefinition() { Resource = "TestScript", Name = "testscript-test-capability", Description = @"TestScript test required and validated capability", Type = SearchParamType.String, Path = new string[] { "TestScript.test.metadata.capability.description", }, XPath = "f:TestScript/f:test/f:metadata/f:capability/f:description", Expression = "TestScript.test.metadata.capability.description" },
new SearchParamDefinition() { Resource = "TestScript", Name = "url", Description = @"Absolute URL used to reference this TestScript", Type = SearchParamType.Uri, Path = new string[] { "TestScript.url", }, XPath = "f:TestScript/f:url", Expression = "TestScript.url" },
new SearchParamDefinition() { Resource = "ValueSet", Name = "code", Description = @"A code defined in the value set", Type = SearchParamType.Token, Path = new string[] { "ValueSet.codeSystem.concept.code", }, XPath = "f:ValueSet/f:codeSystem/f:concept/f:code", Expression = "ValueSet.codeSystem.concept.code" },
new SearchParamDefinition() { Resource = "ValueSet", Name = "context", Description = @"A use context assigned to the value set", Type = SearchParamType.Token, Path = new string[] { "ValueSet.useContext", }, XPath = "f:ValueSet/f:useContext", Expression = "ValueSet.useContext" },
new SearchParamDefinition() { Resource = "ValueSet", Name = "date", Description = @"The value set publication date", Type = SearchParamType.Date, Path = new string[] { "ValueSet.date", }, XPath = "f:ValueSet/f:date", Expression = "ValueSet.date" },
new SearchParamDefinition() { Resource = "ValueSet", Name = "description", Description = @"Text search in the description of the value set", Type = SearchParamType.String, Path = new string[] { "ValueSet.description", }, XPath = "f:ValueSet/f:description", Expression = "ValueSet.description" },
new SearchParamDefinition() { Resource = "ValueSet", Name = "expansion", Description = @"Uniquely identifies this expansion", Type = SearchParamType.Uri, Path = new string[] { "ValueSet.expansion.identifier", }, XPath = "f:ValueSet/f:expansion/f:identifier", Expression = "ValueSet.expansion.identifier" },
new SearchParamDefinition() { Resource = "ValueSet", Name = "identifier", Description = @"The identifier for the value set", Type = SearchParamType.Token, Path = new string[] { "ValueSet.identifier", }, XPath = "f:ValueSet/f:identifier", Expression = "ValueSet.identifier" },
new SearchParamDefinition() { Resource = "ValueSet", Name = "name", Description = @"The name of the value set", Type = SearchParamType.String, Path = new string[] { "ValueSet.name", }, XPath = "f:ValueSet/f:name", Expression = "ValueSet.name" },
new SearchParamDefinition() { Resource = "ValueSet", Name = "publisher", Description = @"Name of the publisher of the value set", Type = SearchParamType.String, Path = new string[] { "ValueSet.publisher", }, XPath = "f:ValueSet/f:publisher", Expression = "ValueSet.publisher" },
new SearchParamDefinition() { Resource = "ValueSet", Name = "reference", Description = @"A code system included or excluded in the value set or an imported value set", Type = SearchParamType.Uri, Path = new string[] { "ValueSet.compose.include.system", }, XPath = "f:ValueSet/f:compose/f:include/f:system", Expression = "ValueSet.compose.include.system" },
new SearchParamDefinition() { Resource = "ValueSet", Name = "status", Description = @"The status of the value set", Type = SearchParamType.Token, Path = new string[] { "ValueSet.status", }, XPath = "f:ValueSet/f:status", Expression = "ValueSet.status" },
new SearchParamDefinition() { Resource = "ValueSet", Name = "system", Description = @"The system for any codes defined by this value set", Type = SearchParamType.Uri, Path = new string[] { "ValueSet.codeSystem.system", }, XPath = "f:ValueSet/f:codeSystem/f:system", Expression = "ValueSet.codeSystem.system" },
new SearchParamDefinition() { Resource = "ValueSet", Name = "url", Description = @"The logical URL for the value set", Type = SearchParamType.Uri, Path = new string[] { "ValueSet.url", }, XPath = "f:ValueSet/f:url", Expression = "ValueSet.url" },
new SearchParamDefinition() { Resource = "ValueSet", Name = "version", Description = @"The version identifier of the value set", Type = SearchParamType.Token, Path = new string[] { "ValueSet.version", }, XPath = "f:ValueSet/f:version", Expression = "ValueSet.version" },
new SearchParamDefinition() { Resource = "VisionPrescription", Name = "datewritten", Description = @"Return prescriptions written on this date", Type = SearchParamType.Date, Path = new string[] { "VisionPrescription.dateWritten", }, XPath = "f:VisionPrescription/f:dateWritten", Expression = "VisionPrescription.dateWritten" },
new SearchParamDefinition() { Resource = "VisionPrescription", Name = "encounter", Description = @"Return prescriptions with this encounter identifier", Type = SearchParamType.Reference, Path = new string[] { "VisionPrescription.encounter", }, Target = new ResourceType[] { ResourceType.Encounter, }, XPath = "f:VisionPrescription/f:encounter", Expression = "VisionPrescription.encounter" },
new SearchParamDefinition() { Resource = "VisionPrescription", Name = "identifier", Description = @"Return prescriptions with this external identifier", Type = SearchParamType.Token, Path = new string[] { "VisionPrescription.identifier", }, XPath = "f:VisionPrescription/f:identifier", Expression = "VisionPrescription.identifier" },
new SearchParamDefinition() { Resource = "VisionPrescription", Name = "patient", Description = @"The identity of a patient to list dispenses for", Type = SearchParamType.Reference, Path = new string[] { "VisionPrescription.patient", }, Target = new ResourceType[] { ResourceType.Patient, }, XPath = "f:VisionPrescription/f:patient", Expression = "VisionPrescription.patient" },
new SearchParamDefinition() { Resource = "VisionPrescription", Name = "prescriber", Description = @"Who authorizes the vision product", Type = SearchParamType.Reference, Path = new string[] { "VisionPrescription.prescriber", }, Target = new ResourceType[] { ResourceType.Practitioner, }, XPath = "f:VisionPrescription/f:prescriber", Expression = "VisionPrescription.prescriber" },
};
}
}
| 278.444528 | 2,984 | 0.71935 | [
"BSD-3-Clause"
] | Kno2/fhir-net-api | src/Hl7.Fhir.Core/Model/Generated/Template-ModelInfo.cs | 371,447 | C# |
/* Copyright (c) 2012-2017 The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
*/
using System.Collections.Generic;
using erl.Oracle.TnsNames.Antlr4.Runtime.Sharpen;
using erl.Oracle.TnsNames.Antlr4.Runtime.Tree;
using erl.Oracle.TnsNames.Antlr4.Runtime.Tree.Xpath;
namespace erl.Oracle.TnsNames.Antlr4.Runtime.Tree.Xpath
{
public class XPathWildcardElement : XPathElement
{
public XPathWildcardElement()
: base(XPath.Wildcard)
{
}
public override ICollection<IParseTree> Evaluate(IParseTree t)
{
if (invert)
{
return new List<IParseTree>();
}
// !* is weird but valid (empty)
IList<IParseTree> kids = new List<IParseTree>();
foreach (ITree c in Trees.GetChildren(t))
{
kids.Add((IParseTree)c);
}
return kids;
}
}
}
| 29.857143 | 70 | 0.605742 | [
"MIT"
] | espenrl/TnsNames | erl.Oracle.TnsNames/Antlr4.Runtime/Tree/Xpath/XPathWildcardElement.cs | 1,045 | C# |
using System.Collections.Generic;
using Unity.UIWidgets.animation;
using Unity.UIWidgets.foundation;
using Unity.UIWidgets.painting;
using Unity.UIWidgets.ui;
using Unity.UIWidgets.widgets;
using UnityEngine;
using TextStyle = Unity.UIWidgets.painting.TextStyle;
using Transform = Unity.UIWidgets.widgets.Transform;
namespace Unity.UIWidgets.material {
public enum CollapseMode {
parallax,
pin,
none
}
public class FlexibleSpaceBar : StatefulWidget {
public FlexibleSpaceBar(
Key key = null,
Widget title = null,
Widget background = null,
bool? centerTitle = null,
EdgeInsets titlePadding = null,
CollapseMode collapseMode = CollapseMode.parallax
) : base(key: key) {
this.title = title;
this.background = background;
this.centerTitle = centerTitle;
this.titlePadding = titlePadding;
this.collapseMode = collapseMode;
}
public readonly Widget title;
public readonly Widget background;
public readonly bool? centerTitle;
public readonly CollapseMode collapseMode;
public readonly EdgeInsets titlePadding;
public static Widget createSettings(
float? toolbarOpacity = null,
float? minExtent = null,
float? maxExtent = null,
float? currentExtent = null,
Widget child = null) {
D.assert(currentExtent != null);
D.assert(child != null);
return new FlexibleSpaceBarSettings(
toolbarOpacity: toolbarOpacity ?? 1.0f,
minExtent: minExtent ?? currentExtent,
maxExtent: maxExtent ?? currentExtent,
currentExtent: currentExtent,
child: child
);
}
public override State createState() {
return new _FlexibleSpaceBarState();
}
}
class _FlexibleSpaceBarState : State<FlexibleSpaceBar> {
bool? _getEffectiveCenterTitle(ThemeData themeData) {
if (this.widget.centerTitle != null) {
return this.widget.centerTitle;
}
switch (themeData.platform) {
case RuntimePlatform.IPhonePlayer:
return true;
default:
return false;
}
}
Alignment _getTitleAlignment(bool effectiveCenterTitle) {
if (effectiveCenterTitle) {
return Alignment.bottomCenter;
}
return Alignment.bottomLeft;
}
float? _getCollapsePadding(float t, FlexibleSpaceBarSettings settings) {
switch (this.widget.collapseMode) {
case CollapseMode.pin:
return -(settings.maxExtent.Value - settings.currentExtent.Value);
case CollapseMode.none:
return 0.0f;
case CollapseMode.parallax:
float deltaExtent = settings.maxExtent.Value - settings.minExtent.Value;
return -new FloatTween(begin: 0.0f, end: deltaExtent / 4.0f).lerp(t);
}
return null;
}
public override Widget build(BuildContext context) {
FlexibleSpaceBarSettings settings =
(FlexibleSpaceBarSettings) context.inheritFromWidgetOfExactType(typeof(FlexibleSpaceBarSettings));
D.assert(settings != null,
() => "A FlexibleSpaceBar must be wrapped in the widget returned by FlexibleSpaceBar.createSettings().");
List<Widget> children = new List<Widget>();
float deltaExtent = settings.maxExtent.Value - settings.minExtent.Value;
float t = (1.0f - (settings.currentExtent.Value - settings.minExtent.Value) / deltaExtent)
.clamp(0.0f, 1.0f);
if (this.widget.background != null) {
float fadeStart = Mathf.Max(0.0f, 1.0f - Constants.kToolbarHeight / deltaExtent);
float fadeEnd = 1.0f;
D.assert(fadeStart <= fadeEnd);
float opacity = 1.0f - new Interval(fadeStart, fadeEnd).transform(t);
if (opacity > 0.0f) {
children.Add(new Positioned(
top: this._getCollapsePadding(t, settings),
left: 0.0f,
right: 0.0f,
height: settings.maxExtent,
child: new Opacity(
opacity: opacity,
child: this.widget.background)
)
);
}
}
Widget title = null;
if (this.widget.title != null) {
switch (Application.platform) {
case RuntimePlatform.IPhonePlayer:
title = this.widget.title;
break;
default:
title = this.widget.title;
break;
}
}
ThemeData theme = Theme.of(context);
float toolbarOpacity = settings.toolbarOpacity.Value;
if (toolbarOpacity > 0.0f) {
TextStyle titleStyle = theme.primaryTextTheme.title;
titleStyle = titleStyle.copyWith(
color: titleStyle.color.withOpacity(toolbarOpacity));
bool effectiveCenterTitle = this._getEffectiveCenterTitle(theme).Value;
EdgeInsets padding = this.widget.titlePadding ??
EdgeInsets.only(
left: effectiveCenterTitle ? 0.0f : 72.0f,
bottom: 16.0f
);
float scaleValue = new FloatTween(begin: 1.5f, end: 1.0f).lerp(t);
Matrix3 scaleTransform = Matrix3.makeScale(scaleValue, scaleValue);
Alignment titleAlignment = this._getTitleAlignment(effectiveCenterTitle);
children.Add(new Container(
padding: padding,
child: new Transform(
alignment: titleAlignment,
transform: scaleTransform,
child: new Align(
alignment: titleAlignment,
child: new DefaultTextStyle(
style: titleStyle,
child: title)
)
)
)
);
}
return new ClipRect(
child: new Stack(
children: children)
);
}
}
public class FlexibleSpaceBarSettings : InheritedWidget {
public FlexibleSpaceBarSettings(
Key key = null,
float? toolbarOpacity = null,
float? minExtent = null,
float? maxExtent = null,
float? currentExtent = null,
Widget child = null
) : base(key: key, child: child) {
D.assert(currentExtent != null);
D.assert(child != null);
this.toolbarOpacity = toolbarOpacity;
this.minExtent = minExtent;
this.maxExtent = maxExtent;
this.currentExtent = currentExtent;
}
public readonly float? toolbarOpacity;
public readonly float? minExtent;
public readonly float? maxExtent;
public readonly float? currentExtent;
public override bool updateShouldNotify(InheritedWidget oldWidget) {
FlexibleSpaceBarSettings _oldWidget = (FlexibleSpaceBarSettings) oldWidget;
return this.toolbarOpacity != _oldWidget.toolbarOpacity
|| this.minExtent != _oldWidget.minExtent
|| this.maxExtent != _oldWidget.maxExtent
|| this.currentExtent != _oldWidget.currentExtent;
}
}
} | 37.578475 | 122 | 0.518258 | [
"Apache-2.0"
] | Luciano-0/2048-Demo | Library/PackageCache/com.unity.uiwidgets@1.5.4-preview.12/Runtime/material/flexible_space_bar.cs | 8,380 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TextAdventures.Quest.Functions;
namespace TextAdventures.Quest.Scripts
{
public class PlaySoundScriptConstructor : ScriptConstructorBase
{
public override string Keyword
{
get { return "play sound"; }
}
protected override IScript CreateInt(List<string> parameters, ScriptContext scriptContext)
{
return new PlaySoundScript(scriptContext,
new Expression<string>(parameters[0], scriptContext),
new Expression<bool>(parameters[1], scriptContext),
new Expression<bool>(parameters[2], scriptContext));
}
protected override int[] ExpectedParameters
{
get { return new int[] { 3 }; }
}
}
public class PlaySoundScript : ScriptBase
{
private ScriptContext m_scriptContext;
private WorldModel m_worldModel;
private IFunction<string> m_filename;
private IFunction<bool> m_synchronous;
private IFunction<bool> m_loop;
public PlaySoundScript(ScriptContext scriptContext, IFunction<string> function, IFunction<bool> synchronous, IFunction<bool> loop)
{
m_scriptContext = scriptContext;
m_worldModel = scriptContext.WorldModel;
m_filename = function;
m_synchronous = synchronous;
m_loop = loop;
}
protected override ScriptBase CloneScript()
{
return new PlaySoundScript(m_scriptContext, m_filename.Clone(), m_synchronous.Clone(), m_loop.Clone());
}
public override void Execute(Context c)
{
string filename = m_filename.Execute(c);
m_worldModel.PlaySound(filename, m_synchronous.Execute(c), m_loop.Execute(c));
}
public override string Save()
{
return SaveScript("play sound", m_filename.Save(), m_synchronous.Save(), m_loop.Save());
}
public override object GetParameter(int index)
{
switch (index)
{
case 0:
return m_filename.Save();
case 1:
return m_synchronous.Save();
case 2:
return m_loop.Save();
default:
throw new ArgumentOutOfRangeException();
}
}
public override void SetParameterInternal(int index, object value)
{
switch (index)
{
case 0:
m_filename = new Expression<string>((string)value, m_scriptContext);
break;
case 1:
m_synchronous = new Expression<bool>((string)value, m_scriptContext);
break;
case 2:
m_loop = new Expression<bool>((string)value, m_scriptContext);
break;
default:
throw new ArgumentOutOfRangeException();
}
}
public override string Keyword
{
get
{
return "play sound";
}
}
}
public class StopSoundScriptConstructor : ScriptConstructorBase
{
public override string Keyword
{
get { return "stop sound"; }
}
protected override IScript CreateInt(List<string> parameters, ScriptContext scriptContext)
{
return new StopSoundScript(WorldModel);
}
protected override int[] ExpectedParameters
{
get { return new int[] { 0 }; }
}
}
public class StopSoundScript : ScriptBase
{
private WorldModel m_worldModel;
public StopSoundScript(WorldModel worldModel)
{
m_worldModel = worldModel;
}
protected override ScriptBase CloneScript()
{
return new StopSoundScript(m_worldModel);
}
public override void Execute(Context c)
{
m_worldModel.PlayerUI.StopSound();
}
public override string Save()
{
return "stop sound";
}
public override object GetParameter(int index)
{
throw new ArgumentOutOfRangeException();
}
public override void SetParameterInternal(int index, object value)
{
throw new ArgumentOutOfRangeException();
}
public override string Keyword
{
get
{
return "stop sound";
}
}
}
}
| 29.349398 | 139 | 0.531609 | [
"MIT"
] | DPS2004/quest | WorldModel/WorldModel/Scripts/PlaySoundScript.cs | 4,874 | C# |
//////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2018 Audiokinetic Inc. / All Rights Reserved
//
//////////////////////////////////////////////////////////////////////
/// @brief Represents Wwise states as Unity assets.
public class WwiseStateReference : WwiseGroupValueObjectReference
{
[AkShowOnly]
[UnityEngine.SerializeField]
private WwiseStateGroupReference WwiseStateGroupReference;
public override WwiseObjectType WwiseObjectType { get { return WwiseObjectType.State; } }
public override WwiseObjectReference GroupObjectReference
{
get { return WwiseStateGroupReference; }
set { WwiseStateGroupReference = value as WwiseStateGroupReference; }
}
public override WwiseObjectType GroupWwiseObjectType { get { return WwiseObjectType.StateGroup; } }
}
| 34.791667 | 101 | 0.641916 | [
"Apache-2.0"
] | Bellseboss-Studio/ProyectoPrincipal_JuegoDePeleas | Assets/Wwise/Deployment/API/Handwritten/Common/WwiseObjects/WwiseStateReference.cs | 835 | C# |
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Diagnostics;
using Microsoft.CodeAnalysis.CSharp.Symbols;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Roslyn.Utilities;
namespace Microsoft.CodeAnalysis.CSharp
{
/// <summary>
/// A binder that knows no symbols and will not delegate further.
/// </summary>
internal partial class BuckStopsHereBinder : Binder
{
internal BuckStopsHereBinder(CSharpCompilation compilation)
: base(compilation)
{
}
public override ConsList<LocalSymbol> ImplicitlyTypedLocalsBeingBound
{
get
{
return ConsList<LocalSymbol>.Empty;
}
}
internal override ConsList<Imports> ImportsList
{
get
{
return ConsList<Imports>.Empty;
}
}
protected override SourceLocalSymbol LookupLocal(SyntaxToken nameToken)
{
return null;
}
internal override bool IsAccessible(Symbol symbol, TypeSymbol accessThroughType, out bool failedThroughTypeCheck, ref HashSet<DiagnosticInfo> useSiteDiagnostics, ConsList<Symbol> basesBeingResolved = null)
{
failedThroughTypeCheck = false;
return this.IsSymbolAccessibleConditional(symbol, Compilation.Assembly, ref useSiteDiagnostics);
}
internal override ConstantFieldsInProgress ConstantFieldsInProgress
{
get
{
return ConstantFieldsInProgress.Empty;
}
}
internal override ConsList<FieldSymbol> FieldsBeingBound
{
get
{
return ConsList<FieldSymbol>.Empty;
}
}
internal override LocalSymbol LocalInProgress
{
get
{
return null;
}
}
protected override bool IsUnboundTypeAllowed(GenericNameSyntax syntax)
{
return false;
}
internal override bool IsInMethodBody
{
get
{
return false;
}
}
internal override bool IsDirectlyInIterator
{
get
{
return false;
}
}
internal override bool IsIndirectlyInIterator
{
get
{
return false;
}
}
internal override GeneratedLabelSymbol BreakLabel
{
get
{
return null;
}
}
internal override GeneratedLabelSymbol ContinueLabel
{
get
{
return null;
}
}
internal override BoundExpression ConditionalReceiverExpression
{
get
{
return null;
}
}
// This should only be called in the context of syntactically incorrect programs. In other
// contexts statements are surrounded by some enclosing method or lambda.
internal override TypeSymbol GetIteratorElementType(YieldStatementSyntax node, DiagnosticBag diagnostics)
{
// There's supposed to be an enclosing method or lambda.
throw ExceptionUtilities.Unreachable;
}
internal override Symbol ContainingMemberOrLambda
{
get
{
return null;
}
}
internal override Binder GetBinder(CSharpSyntaxNode node)
{
return null;
}
internal override ImmutableArray<LocalSymbol> GetDeclaredLocalsForScope(CSharpSyntaxNode node)
{
throw ExceptionUtilities.Unreachable;
}
internal override BoundSwitchStatement BindSwitchExpressionAndSections(SwitchStatementSyntax node, Binder originalBinder, DiagnosticBag diagnostics)
{
// There's supposed to be a SwitchBinder (or other overrider of this method) in the chain.
throw ExceptionUtilities.Unreachable;
}
internal override BoundForStatement BindForParts(DiagnosticBag diagnostics, Binder originalBinder)
{
// There's supposed to be a ForLoopBinder (or other overrider of this method) in the chain.
throw ExceptionUtilities.Unreachable;
}
internal override BoundStatement BindForEachParts(DiagnosticBag diagnostics, Binder originalBinder)
{
// There's supposed to be a ForEachLoopBinder (or other overrider of this method) in the chain.
throw ExceptionUtilities.Unreachable;
}
internal override BoundWhileStatement BindWhileParts(DiagnosticBag diagnostics, Binder originalBinder)
{
// There's supposed to be a WhileBinder (or other overrider of this method) in the chain.
throw ExceptionUtilities.Unreachable;
}
internal override BoundDoStatement BindDoParts(DiagnosticBag diagnostics, Binder originalBinder)
{
// There's supposed to be a WhileBinder (or other overrider of this method) in the chain.
throw ExceptionUtilities.Unreachable;
}
internal override BoundStatement BindUsingStatementParts(DiagnosticBag diagnostics, Binder originalBinder)
{
// There's supposed to be a UsingStatementBinder (or other overrider of this method) in the chain.
throw ExceptionUtilities.Unreachable;
}
internal override BoundStatement BindLockStatementParts(DiagnosticBag diagnostics, Binder originalBinder)
{
// There's supposed to be a LockBinder (or other overrider of this method) in the chain.
throw ExceptionUtilities.Unreachable;
}
internal override ImmutableArray<LocalSymbol> Locals
{
get
{
// There's supposed to be a LocalScopeBinder (or other overrider of this method) in the chain.
throw ExceptionUtilities.Unreachable;
}
}
internal override ImmutableArray<LabelSymbol> Labels
{
get
{
// There's supposed to be a LocalScopeBinder (or other overrider of this method) in the chain.
throw ExceptionUtilities.Unreachable;
}
}
internal override ImmutableHashSet<Symbol> LockedOrDisposedVariables
{
get { return ImmutableHashSet.Create<Symbol>(); }
}
}
}
| 31.252294 | 213 | 0.601497 | [
"Apache-2.0"
] | Duikmeester/Roslyn | src/Compilers/CSharp/Portable/Binder/BuckStopsHereBinder.cs | 6,815 | C# |
using System;
using System.Collections.Generic;
using System.Text;
namespace NetCoreExample.Models.ViewModels
{
public class MenuVM
{
public int Id { get; set; }
public int ParentId { get; set; }
public string Descriptions { get; set; }
}
}
| 20.857143 | 49 | 0.619863 | [
"Apache-2.0"
] | alexhendra/NetCore3.1Example | NetCoreExample.Models/ViewModels/MenuVM.cs | 294 | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.