Print Page | Close Window

Why is DynamicTypeInfo now INTERNAL?

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=1753
Printed Date: 28-Jan-2026 at 8:10am


Topic: Why is DynamicTypeInfo now INTERNAL?
Posted By: pk55
Subject: Why is DynamicTypeInfo now INTERNAL?
Date Posted: 26-Apr-2010 at 4:57pm
In DevForce 2009, the signature for this (in IdeaBlade.core.dll) was:
 
public  http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://IdeaBlade.Core:5.2.3.1:287b5094865421c0/IdeaBlade.Core.DynamicTypeInfo/.ctor%28System.Type%29 - DynamicTypeInfo ( http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.0.0:b77a5c561934e089/System.Type - Type  type)
but in DevForce 2010 it's:
 
internal http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://IdeaBlade.Core.SL:6.0.1.0:287b5094865421c0/IdeaBlade.Core.DynamicTypeInfo/.ctor%28System.Type%29 - DynamicTypeInfo ( http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.5.0:7cec85d7bea7798e/System.Type - Type type)
 
I'm getting compiler failures (obviously) with:
 
Error 13 'IdeaBlade.Core.DynamicTypeInfo' does not contain a constructor that takes 1 arguments.
 
Why was this changed to Internal?  I was using some of your sample TypeHelper code which calls this and I can't find any mention of this being a breaking change in any release docs.



Replies:
Posted By: ting
Date Posted: 29-Apr-2010 at 5:21pm

You should be able to replace that with:

DynamicTypeInfo.GetTypeInfo(Type type)
 
We changed the API to improve performance by caching previously looked up Types.  Sorry this missed the release notes - it had been marked as internal use only, although it was referenced from Prism Explorer.
 


Posted By: pk55
Date Posted: 29-Apr-2010 at 5:53pm
Thanks.



Print Page | Close Window