Title | Under | Posted on |
---|---|---|
Component interface Error: no rows exist for the specified keys | PeopleSoft Technical | 03/15/2019 - 3:54am |
ADD 24 months starting from current month.(peoplesoft) | PeopleSoft Functional | 07/29/2018 - 8:44pm |
TRC values dropdown | PeopleSoft Technical | 04/04/2018 - 12:54am |
how to find missing sequence in GRID and print the mising sequence number while saving through peoplecode | PeopleSoft Technical | 09/11/2017 - 4:49am |
dmesg.txt"onTokenRefresh:cJLhVfXwyZM:APA91bGKa9-MPVY3Y5BiyB7d4QUDAHz1o8L1bQe7lEtCVfXHKt2Wf4lOKgwVgl3hW_eVNYD1B73azJ1AUavz4M1kcUj-bMXzWhX4sQx1u_ax-Vda6n3nSD9rimzPG_sS9z5aboZOho_E
using System; using System.Runtime.InteropServices; // Guid for the interface IMyInterface. [Guid("F9168C5E-CEB2-4faa-B6BF-329BF39FA1E4")] interface IMyInterface { void MyMethod(); } // Guid for the coclass MyTestClass. [Guid("936DA01F-9ABD-4d9d-80C7-02AF85C822A8")] public class MyTestClass : IMyInterface { public void MyMethod() {} public static void Main( string []args ) { GuidAttribute IMyInterfaceAttribute = (GuidAttribute) Attribute.GetCustomAttribute(typeof(IMyInterface), typeof(GuidAttribute)); System.Console.WriteLine("IMyInterface Attribute: " + IMyInterfaceAttribute.Value ); // Use the string to create a guid. Guid myGuid1 = new Guid(IMyInterfaceAttribute.Value ); // Use a byte array to create a guid. Guid myGuid2 = new Guid(myGuid1.ToByteArray()); if (myGuid1.Equals(myGuid2)) System.Console.WriteLine("myGuid1 equals myGuid2"); else System.Console.WriteLine("myGuid1 does not equal myGuid2" ); // Equality operator can also be used to determine if two guids have same value. if ( myGuid1 == myGuid2 ) System.Console.WriteLine( "myGuid1 == myGuid2" ); else System.Console.WriteLine( "myGuid1 != myGuid2" ); } } // The example displays the following output: // IMyInterface Attribute: F9168C5E-CEB2-4faa-B6BF-329BF39FA1E4 // myGuid1 equals myGuid2 // myGuid1 ==