• .NET Namespaces (as well as PHP namespaces) are accessed by using standard PHP syntax
  • .NET Static Functions are accessed with :: (as well as PHP static functions)

For example, in C#, we would do the following:
System.String.Format("{0}", "test");

in Phalanger, we would access it as such:
System\String::Format("{0}", "test");
  • .NET Class Static Properties in PHP require a $, as do static fields
MyNamespace\MyClass::$MyStaticProperty
or
MyNamespace\MyClass::$MyStaticField

Last edited Apr 23, 2012 at 9:34 PM by jakub, version 3

Comments

No comments yet.