In the AutoCAD .NET API you can access xrefs through BlockReference entities in the BlockTableRecord. You know that they are an xref if their parent block table record has the IsFromExternalReference or IsFromOverlayReference property set to true. How do you determine if the xref is clipped? How do you determine what that clipping bou...
It seems like a big deal is made out of boxing and unboxing. Are there so many uses of the object type that we really have to be super aware of this?
can someone suggest very practical instances when boxing/unboxing is needed?
...
My project is using an Interface to connect some optional code to my main application. It builds and runs fine during development but when I build it on my build machine I get Errors like the one below.
ERROR BC30456 in C:\calc{list} Build{Pro}\Trunk\plugin Constant Contact\InfusionLogic.CC\calcListCCListColSWB.vb(94,0) : 'IconCol' is ...
How can you examine what's in the ViewState for a control/page?
When I try to look at the object in the debugger, the keys, the values, the Non-public members are all "turtles all the way down".
...
I have a question similar to this but in the context of L2S. I want to create a lookup table to store values that could be one of several possible datatypes. As suggested in the referenced question, I could use sql_variant datatype. However, L2S maps sql_variant to Object, which is suboptimal. I'm guessing it's possible to get at the tab...
Any help here as I'm a C# noob. The following code works fine and returns 1 string ViewState2. I'd like it to return an array of ViewState2 and EventValidation2 so I can manipulate it later on. How would I convert the code below to return an array?
public string get_status(string local_fname)
{
var dts_doc = new HtmlA...
Hi
I want to use the autoFilter() method to filter some rows.
I've managed to activate the autoFilter() method on a selected range (the whole sheet) with no problem.
The method i use on a selected range looks like this:
range.AutoFilter(5, myCriteria, Excel.XlAutoFilterOperator.xlAnd, missing, true);
where:
5 is the column index,
my...
I am not talking about performance or price.
I am talking about popularity.
Which is the most popular O/R-Mapper for .Net as of 2010?
Which would be the most popular O/R-Mapper for .Net for years to come?
...
Can someone provide a comparison of the middleware difference (pros/cons) of .NET vs J2EE.
If not, at least provide a useful link for me to read to is concise.
...
I have an app which uses Linq2SQL to retrieve parent/child data. The parent data is stored in a binding source, Me.SampleDataBindingSource, and the child data in Me.MeasurementsBindingSource.
When I create a new SampleData entity, the program works fine. But, when I try to retrieve an existing entity, I get the following error:
Syst...
While I have seen some discussions on the utilization of an older CLR 2.0 component within a newer CLR 4.0 application, how would one handle the opposite case?
For example, if one had a legacy app in .Net 2.0, and wanted to take advantage of a newer business logic that took full advantage of the 4.0 version of the CLR, how would one go ...
I need one button to be enabled only when two other properties have been set to a value other than null. I could to this manually but I wonder if there is a way to do it using .net's Binding class. I'm using .net 4.0 working with Windows Forms.
...
My goal is to display a .NET Windows forms message box from a pure C++ native Windows API-level program (not managed C++ or C++/CLI).
That is, for learning purposes I want to implementing the C# code shown in the comment below, in pure C++:
/*
// C# code that this C++ program should implement:
using System.Windows.Forms;
n...
I haven't gotten into ORM frameworks much yet, and could use some input from experienced practitioners. Some of these questions may be naive. Please bear with me.
In mapping objects to relations, do these frameworks also suggest indices that may be necessary for the queries to execute efficiently?
The queries generated by ORMs, are the...
I've got a multiline string like this. Ity has line feeds.
[Site Url="http://medportal.domain.edu" Owner="DOMAIN\user1" SecondaryOwner="DOMAIN\user2" ContentDatabase="WSS_Content_$1" StorageUsedMB="0.8" StorageWarningMB="0" StorageMaxMB="0" /]
[Site Url="http://medportal.domain.edu/sites/ahSC" Owner="DOMAIN\user1" ContentDatabase="WSS...
Just looking for a really easy way to clean up some HTML (possibly with embedded JavaScript). Tried two different HtmlTidy .NET ports and both and throwing exceptions...
Sorry, by "clean" I mean "indent". The HTML is not malformed, at all. It's XHTML strict.
Finally got something working with SGML, but this is seriously the most ridi...
For example, is it possible to bind a Textblock's Text property to an element Name[2] of type String?
...
I have a control with a property public MyClass MyProperty{...} which value is shown on the screen as a graph. I want this property to be bindable to any other MyClass in the program by using the Binding class (MyProperty would be the propertyName parameter in this Binding constructor, and the other MyClass would be the dataMember parame...
I'm trying to serialize the following object:
[XmlRoot("book")]
public class Book
{
#region Properties
[XmlAttribute("isbn-10")]
public string Isbn10 { get; set; }
[XmlAttribute("isbn-13")]
public string Isbn13 { get; set; }
[XmlAttribute("title")]
public string Title { get; set; }
[XmlAttribute("author")...
Hi there,
I'm trying to create a .NET-based client app (in WPF - although for the time being I'm just doing it as a console app) to integrate with an OAuth-enabled application, specifically Mendeley (http://dev.mendeley.com), which apparently uses 3-legged OAuth.
This is my first time using OAuth, and I'm having a lot of difficulty get...