Chili.Opf3 Send comments on this topic.
IDynamicExtensible Interface
See Also  Members   Example
Chili.Opf3 Namespace : IDynamicExtensible Interface




This interface is implemented by classes that want be dynamically extensible.

Syntax

Visual Basic (Declaration) 
Public Interface IDynamicExtensible 
Visual Basic (Usage)Copy Code
Dim instance As IDynamicExtensible
C# 
public interface IDynamicExtensible 
Managed Extensions for C++ 
public __gc __interface IDynamicExtensible 
C++/CLI 
public interface class IDynamicExtensible 

Example

The following example shows how to implement the interface.
C#Copy Code
            [Persistent("USER")] 
public class User : IDynamicExtensible 

    private IDictionary<string, object> _unknownFields =  
        new Dictionary<string, object>(); 
 
    public IDictionary<string, object> UnknownFields 
    { 
        get 
        { 
           return _unknownFields; 
        } 
    } 
  
    // ... Other properties of the persistent object. 

    

Remarks

A class that should be dynamically extensible (the class contains some fixed key fields and a lot different other fields) has to implement this interface. All fields that are not directly mapped in that class are stored to the property exposed by this interface.

Requirements

Namespace: Chili.Opf3

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: Chili.Opf3 (in Chili.Opf3.dll)

See Also