Skip to content

Instantly share code, notes, and snippets.

@MSDN-WhiteKnight
Last active June 3, 2022 09:46
Show Gist options
  • Save MSDN-WhiteKnight/943e444f4046feda265c7bf5950cb331 to your computer and use it in GitHub Desktop.
Save MSDN-WhiteKnight/943e444f4046feda265c7bf5950cb331 to your computer and use it in GitHub Desktop.
MS Docs articles for improvement
https://docs.microsoft.com/en-us/sql/relational-databases/errors-events/mssqlserver-5243-database-engine-error?view=sql-server-ver15
https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/reference-types#the-string-type
(double hyphen to dash)
https://docs.microsoft.com/en-us/dotnet/framework/windows-services/how-to-start-services
https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.application.openforms?view=netframework-4.8 (needs example)
https://docs.microsoft.com/en-us/dotnet/api/system.net.networkinformation.networkinterface?view=netframework-4.7.1 (https://github.com/dotnet/dotnet-api-docs/issues/797)
https://docs.microsoft.com/en-us/dotnet/api/system.reflection.methodinfoextensions.getbasedefinition?view=netcore-2.0#System_Reflection_MethodInfoExtensions_GetBaseDefinition_System_Reflection_MethodInfo_
https://docs.microsoft.com/en-us/dotnet/api/system.windows.gridlength?view=netframework-4.8
https://docs.microsoft.com/en-us/dotnet/api/system.data.sqlclient.sqlconnectionstringbuilder.connectretrycount?view=dotnet-plat-ext-3.1#System_Data_SqlClient_SqlConnectionStringBuilder_ConnectRetryCount
FormatterAssemblyStyle
https://docs.microsoft.com/en-us/dotnet/api/system.runtime.serialization.formatters.formatterassemblystyle?view=netframework-4.8
https://github.com/dotnet/runtime/blob/master/src/libraries/System.Runtime.Serialization.Formatters/src/System/Runtime/Serialization/Formatters/Binary/BinaryObjectReader.cs#L1039
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_commonparameters?view=powershell-7.1
----- Roslyn Emit API -----
https://docs.microsoft.com/en-us/dotnet/framework/reflection-and-codedom/generating-and-compiling-source-code-from-a-codedom-graph#using-a-codedom-code-provider-to-compile-assemblies
https://docs.microsoft.com/en-us/archive/msdn-magazine/2017/may/net-core-cross-platform-code-generation-with-roslyn-and-net-core#executing-code-the-emit-apis
https://joshvarty.com/2016/01/16/learn-roslyn-now-part-16-the-emit-api/
https://docs.microsoft.com/en-us/dotnet/csharp/roslyn-sdk/
https://docs.microsoft.com/en-us/dotnet/api/microsoft.codeanalysis.csharp.csharpcompilation?view=roslyn-dotnet-3.11.0
PreserveCompilationContext https://docs.microsoft.com/en-us/dotnet/core/project-sdk/msbuild-props#preservecompilationcontext
Dynamically compile assemblies using Roslyn Emit API
- Prerequisites
- Configure project to preserve comilation context
- Compile code using CSharpCompilation class
---------------------------
https://docs.microsoft.com/en-us/dotnet/api/system.type.getmembers?view=net-5.0#System_Type_GetMembers_System_Reflection_BindingFlags_
(Specify BindingFlags.Default alone to return an empty MethodInfo array.)
https://docs.microsoft.com/en-us/dotnet/api/system.reflection.assembly.getforwardedtypes?view=netcore-3.1#system-reflection-assembly-getforwardedtypes
https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/using-statement (pattern-based using)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment