|
16.01.2008, 02:49 | #1 |
Участник
|
Issues concerning X++: Missing values: getting the System.Missing.Value value
Источник: http://blogs.msdn.com/x/archive/2008...lue-value.aspx
============== When dealing with office integration scenarios and when calling APIs that are based on old COM interfaces, there is a need to specify that a value is not provided. The notmal way to do this (say, in C#) is to use System.Reflection.Missing.Value Now, as it happens, Value is not a static property, as one might expect, but instead a public static field. It is currently not possible in X++ to reference the value of a field. There are at least two ways to solve the problem:
System.Reflection.FieldInfo info = type.GetField("Value"); System.Object value = info.GetValue(null); This has a performance penalty involved, but that can rpobably be ignored in most cases. Источник: http://blogs.msdn.com/x/archive/2008...lue-value.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|