Display: Cloud | List
Most Popular Tags
Results (464 total) All > c# (x)
Class and Interface Accessibility Question (Access Modifiers (C# Programming Guide))
On this page of the documentation (in the section titled "Class and Struct Accessibility"), it says: $0Classes and structs are declared as internal by default unless the keyword public is added to the class definition...$0 $0$0 $0 $0But in the section titled "Other Types," it says: $0 $0Unlike classes, interfaces default to internal access.$0 $0$0 $0 $0The first says that classes are inter
Last modified by XgenX on 9/10/2012 6:55:53 AM
Tags:  bug  c#  documentation  spec  usability
C# syntax (CTL_INFO structure (Windows))
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]public struct CTL_INFO { public UInt32 dwVersion; public CTL_USAGE SubjectUsage; public CRYPTOAPI_BLOB ListIdentifier; public CRYPTOAPI_BLOB SequenceNumber; public UInt64 ThisUpdate; public UInt64 NextUpdate; public CRYPT_ALGORITHM_IDENTIFIER SubjectAlgorithm; public UInt32 cCTLEntry; public IntPtr rgCTLEnt
Last modified by Vadims Podans on 3/30/2012 7:22:59 AM
Tags:  c#
C# syntax (CTL_CONTEXT structure (Windows))
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]public struct CTL_CONTEXT { public UInt32 dwMsgAndCertEncodingType; public IntPtr pbCtlEncoded; public UInt32 cbCtlEncoded; public IntPtr pCtlInfo; public IntPtr hCertStore; public IntPtr hCryptMsg; public IntPtr pbCtlContent; public UInt32 cbCtlContent;}
Last modified by Vadims Podans on 3/30/2012 7:21:04 AM
Tags:  c#
C# syntax (CTL_ENTRY structure (Windows))
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]public struct CTL_ENTRY { public CRYPTOAPI_BLOB SubjectIdentifier; public UInt32 cAttribute; public IntPtr rgAttribute;}
Last modified by Vadims Podans on 3/30/2012 7:18:42 AM
Tags:  c#
C# syntax (CTL_USAGE structure (Windows))
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]public struct CTL_USAGE { public UInt32 cUsageIdentifier; public IntPtr rgpszUseageIdentifier;}
Last modified by Vadims Podans on 3/30/2012 7:17:24 AM
Tags:  c#
Code shouldn't disappear (Partial Classes and Methods (C# Programming Guide))
Cant agree with source code disappearing as part of compilation activity: As it is a compilation issue there are 2 options:1)throw compilation error so that the coder is aware of what's happening2)and if possible, have a new method_implemented keyword to enable coding like this: if method_implemented(obj.FnFOO(type1, type2) { obj.FnFOO(arg1, arg2);}
Last modified by cethie on 11/10/2011 8:46:33 AM
C# Syntax (SetSuspendState function (Windows))
[DllImport("powrprof.dll", SetLastError = true)][return: MarshalAs(UnmanagedType.I1)]public static extern bool SetSuspendState( [In, MarshalAs(UnmanagedType.I1)] bool Hibernate, [In, MarshalAs(UnmanagedType.I1)] bool ForceCritical, [In, MarshalAs(UnmanagedType.I1)] bool DisableWakeEvent );
Last modified by Stanley Roark on 11/3/2011 6:11:11 PM
Tags:  c#  syntax
c# and CLIPS connectivity (How to: Use the Exception Assistant)
i have this error and some body telling me how i can solve this........Unable to load DLL 'CLIPSLib': This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)
Last modified by ahmadwaqar on 10/19/2011 7:59:26 AM
Tags:  and  c#  clips  connectivity  contentbug
An example using dynamic properties of .Net 4 (Workbooks.Open Method (Excel))
The following piece of code requires a reference to Microsoft.Office.Interop.Excel and Microsoft.CSharp. It will list the row number and content of the first column of the first sheet in an excel file using Excel = Microsoft.Office.Interop.Excel; ... var filePath = @"C:\Temp\Sample.xlsx"; var application = new Excel.Application(); var book = application.W
Last modified by Morten Wennevik on 10/15/2011 3:10:50 PM
Tags:  c#  dynamic  excel
Sample Code(C#) (FindWindow function (Windows))
[DllImport("user32.dll")] public static extern IntPtr FindWindow(String sClassName, String sAppName); Example: IntPtr hwnd=FindWindow(null,"Form1"); "Form1" is the Text property of the window. Along with "EnableWindow(..)" , this function can be used to lock a perticular window. Example: [DllImport("user32.dll")] public static extern bool EnableWindow(IntPtr hwnd, bool bEnable); public
Last modified by kaka2011-07-20 on 7/20/2011 6:06:07 AM
Tags:  c#  code  contentbug  example  sample;
Page view tracker